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 SmooksFactory
public Smooks createInstance(InputStream config) throws IOException, SAXException
Bundle
passed in and adds the passed-in
configuration.createInstance
in interface SmooksFactory
bundle
- 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.IOException
SAXException
public Smooks createInstance(String config) throws IOException, SAXException
SmooksFactory
createInstance
in interface SmooksFactory
config
- the Smooks configuration to add to the created Smooks instance.IOException
SAXException
Copyright © 2020. All rights reserved.