public class SmooksOSGIFactory extends Object implements SmooksFactory
| Constructor and Description |
|---|
SmooksOSGIFactory(org.osgi.framework.Bundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
Smooks |
createInstance()
Creates a new Smooks instance using the
Bundle passed in. |
Smooks |
createInstance(InputStream config)
Creates a new Smooks instance using the
Bundle passed in and adds the passed-in
configuration. |
Smooks |
createInstance(String config)
Creates a Smooks instance that is unconfigured
|
public Smooks createInstance()
Bundle passed in.
Calling this method is equivalent to calling #create(String) and passing
in null as the config.createInstance in interface SmooksFactorypublic Smooks createInstance(InputStream config) throws IOException, SAXException
Bundle passed in and adds the passed-in
configuration.createInstance in interface SmooksFactorybundle - the OSGi bundle for which a delegating classloader will be created.config - the configuration that should be added to the newly created Smooks instance. If null
then a non-configured Smooks instance will be returned.IOExceptionSAXExceptionpublic Smooks createInstance(String config) throws IOException, SAXException
SmooksFactorycreateInstance in interface SmooksFactoryconfig - the Smooks configuration to add to the created Smooks instance.IOExceptionSAXExceptionCopyright © 2020. All rights reserved.