/** * Close this Smooks instance and all associated resources. * <p/> * Should result in the {@link org.milyn.delivery.annotation.Uninitialize uninitialization} * of all allocated {@link org.milyn.delivery.ContentHandler} instances. */ public void close() { context.getStore().close(); }
/** * Close this Smooks instance and all associated resources. * * Should result in the {@link org.milyn.delivery.annotation.Uninitialize uninitialization} * of all allocated {@link org.milyn.delivery.ContentHandler} instances. */ public void close() { context.getStore().close(); }
/** * Close this Smooks instance and all associated resources. * <p/> * Should result in the {@link org.milyn.delivery.annotation.Uninitialize uninitialization} * of all allocated {@link org.milyn.delivery.ContentHandler} instances. */ public void close() { context.getStore().close(); }
/** * Close this Smooks instance and all associated resources. * <p/> * Should result in the {@link org.milyn.delivery.annotation.Uninitialize uninitialization} * of all allocated {@link org.milyn.delivery.ContentHandler} instances. */ public void close() { context.getStore().close(); }
private synchronized void initializeResourceConfigurations() { if(!isConfigurable) { return; } isConfigurable = false; try { context.getStore().setNamespaces(); } catch (SAXPathException e) { throw new SmooksConfigurationException("Error configuring namespaces", e); } }
private synchronized void initializeResourceConfigurations() { if(!isConfigurable) { return; } isConfigurable = false; try { context.getStore().setNamespaces(); } catch (SAXPathException e) { throw new SmooksConfigurationException("Error configuring namespaces", e); } }
private synchronized void initializeResourceConfigurations() { if(!isConfigurable) { return; } isConfigurable = false; try { context.getStore().setNamespaces(); } catch (SAXPathException e) { throw new SmooksConfigurationException("Error configuring namespaces", e); } }
private synchronized void initializeResourceConfigurations() { if(!isConfigurable) { return; } isConfigurable = false; try { context.getStore().setNamespaces(); } catch (SAXPathException e) { throw new SmooksConfigurationException("Error configuring namespaces", e); } }
/** * Add a resource configuration to this Smooks instance. * * These configurations do not overwrite previously added configurations. * They are added to the list of configurations on this Smooks instance. * * @param resourceConfig The resource configuration to be added. */ public void addConfiguration(SmooksResourceConfiguration resourceConfig) { AssertArgument.isNotNull(resourceConfig, "resourceConfig"); assertIsConfigurable(); context.getStore().registerResource(resourceConfig); }
/** * Add a resource configuration to this Smooks instance. * <p/> * These configurations do not overwrite previously added configurations. * They are added to the list of configurations on this Smooks instance. * * @param resourceConfig The resource configuration to be added. */ public void addConfiguration(SmooksResourceConfiguration resourceConfig) { AssertArgument.isNotNull(resourceConfig, "resourceConfig"); assertIsConfigurable(); context.getStore().registerResource(resourceConfig); }
/** * Add a resource configuration to this Smooks instance. * <p/> * These configurations do not overwrite previously added configurations. * They are added to the list of configurations on this Smooks instance. * * @param resourceConfig The resource configuration to be added. */ public void addConfiguration(SmooksResourceConfiguration resourceConfig) { AssertArgument.isNotNull(resourceConfig, "resourceConfig"); assertIsConfigurable(); context.getStore().registerResource(resourceConfig); }
/** * Add a resource configuration to this Smooks instance. * <p/> * These configurations do not overwrite previously added configurations. * They are added to the list of configurations on this Smooks instance. * * @param resourceConfig The resource configuration to be added. */ public void addConfiguration(SmooksResourceConfiguration resourceConfig) { AssertArgument.isNotNull(resourceConfig, "resourceConfig"); assertIsConfigurable(); context.getStore().registerResource(resourceConfig); }
/** * Add a set of resource configurations to this Smooks instance. * * These configurations do not overwrite previously added configurations. * They are added to the list of configurations on this Smooks instance. * * The base URI is required for resolving resource imports. Just specify * the location of the resource file. * * @param baseURI The base URI string for the resource configuration list. See * {@link org.milyn.resource.URIResourceLocator}. * @param resourceConfigStream The resource configuration stream. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. */ public void addConfigurations(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException { assertIsConfigurable(); AssertArgument.isNotNullAndNotEmpty(baseURI, "baseURI"); AssertArgument.isNotNull(resourceConfigStream, "resourceConfigStream"); try { context.getStore().registerResources(baseURI, resourceConfigStream); } catch (URISyntaxException e) { throw new IOException("Failed to read resource configuration. Invalid 'baseURI'."); } }
/** * Add a set of resource configurations to this Smooks instance. * <p/> * These configurations do not overwrite previously added configurations. * They are added to the list of configurations on this Smooks instance. * <p/> * The base URI is required for resolving resource imports. Just specify * the location of the resource file. * * @param baseURI The base URI string for the resource configuration list. See * {@link org.milyn.resource.URIResourceLocator}. * @param resourceConfigStream The resource configuration stream. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. */ public void addConfigurations(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException { assertIsConfigurable(); AssertArgument.isNotNullAndNotEmpty(baseURI, "baseURI"); AssertArgument.isNotNull(resourceConfigStream, "resourceConfigStream"); try { context.getStore().registerResources(baseURI, resourceConfigStream); } catch (URISyntaxException e) { throw new IOException("Failed to read resource configuration. Invalid 'baseURI'."); } }
/** * Add a set of resource configurations to this Smooks instance. * <p/> * These configurations do not overwrite previously added configurations. * They are added to the list of configurations on this Smooks instance. * <p/> * The base URI is required for resolving resource imports. Just specify * the location of the resource file. * * @param baseURI The base URI string for the resource configuration list. See * {@link org.milyn.resource.URIResourceLocator}. * @param resourceConfigStream The resource configuration stream. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. */ public void addConfigurations(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException { assertIsConfigurable(); AssertArgument.isNotNullAndNotEmpty(baseURI, "baseURI"); AssertArgument.isNotNull(resourceConfigStream, "resourceConfigStream"); try { context.getStore().registerResources(baseURI, resourceConfigStream); } catch (URISyntaxException e) { throw new IOException("Failed to read resource configuration. Invalid 'baseURI'."); } }
/** * Add a set of resource configurations to this Smooks instance. * <p/> * These configurations do not overwrite previously added configurations. * They are added to the list of configurations on this Smooks instance. * <p/> * The base URI is required for resolving resource imports. Just specify * the location of the resource file. * * @param baseURI The base URI string for the resource configuration list. See * {@link org.milyn.resource.URIResourceLocator}. * @param resourceConfigStream The resource configuration stream. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. */ public void addConfigurations(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException { assertIsConfigurable(); AssertArgument.isNotNullAndNotEmpty(baseURI, "baseURI"); AssertArgument.isNotNull(resourceConfigStream, "resourceConfigStream"); try { context.getStore().registerResources(baseURI, resourceConfigStream); } catch (URISyntaxException e) { throw new IOException("Failed to read resource configuration. Invalid 'baseURI'."); } }