public class SmooksOSGIFactory extends Object implements org.milyn.SmooksFactory
| Constructor and Description |
|---|
SmooksOSGIFactory(org.osgi.framework.Bundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
org.milyn.Smooks |
createInstance()
Creates a new Smooks instance using the
Bundle passed in. |
org.milyn.Smooks |
createInstance(InputStream config)
Creates a new Smooks instance using the
Bundle passed in and adds the passed-in
configuration. |
org.milyn.Smooks |
createInstance(String config) |
public org.milyn.Smooks createInstance()
Bundle passed in.
Calling this method is equivalent to calling #create(String) and passing
in null as the config.createInstance in interface org.milyn.SmooksFactorypublic org.milyn.Smooks createInstance(InputStream config) throws IOException, SAXException
Bundle passed in and adds the passed-in
configuration.createInstance in interface org.milyn.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 org.milyn.Smooks createInstance(String config) throws IOException, SAXException
createInstance in interface org.milyn.SmooksFactoryIOExceptionSAXExceptionCopyright © 2016. All rights reserved.