|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.listeners.config.Generator
public class Generator
ESB Configuration Generator.
Generates a legacy/deprecated configuration fileset in accordance with theConfigTree
approach to ESB configuration. The
generator input should be a configuration that has been validated against the
JBoss ESB configuration schema (XMLSchema).
Nested Class Summary | |
---|---|
static class |
Generator.XMLBeansModel
XMLBeans based model implementation. |
Field Summary | |
---|---|
static java.lang.String |
ESB_CONFIG_GATEWAY_XML_FILE
Gateway Listeners config file. |
static java.lang.String |
ESB_CONFIG_XML_FILE
ESB Aware Listeners config file. |
Constructor Summary | |
---|---|
Generator(java.io.InputStream config)
Public constructor. |
|
Generator(java.io.InputStream config,
java.io.OutputStream listenerOutputStream,
java.io.OutputStream gatewayOutputStream)
|
Method Summary | |
---|---|
static boolean |
exposesInVMListener(ServiceDocument.Service service)
|
void |
generate()
Generate the configuration set in the supplied output directory and store it in the member outputstreams. |
void |
generate(java.io.File outdir)
Generate the configuration set in the supplied output directory. |
Generator.XMLBeansModel |
getModel()
Get the model instance associate with the configuration used to create this Generator instance. |
static Generator.XMLBeansModel |
parseConfig(java.io.InputStream config)
Parse the supplied config into a config model. |
static java.util.Properties |
toProperties(java.util.List<PropertyDocument.Property> configProperties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ESB_CONFIG_GATEWAY_XML_FILE
public static final java.lang.String ESB_CONFIG_XML_FILE
Constructor Detail |
---|
public Generator(java.io.InputStream config, java.io.OutputStream listenerOutputStream, java.io.OutputStream gatewayOutputStream) throws ConfigurationException, java.io.IOException
ConfigurationException
java.io.IOException
public Generator(java.io.InputStream config) throws ConfigurationException, java.io.IOException
config
- The input configuration stream.
ConfigurationException
- Bad listener ESB configuration.
java.io.IOException
- Unable to read the ESB listener configuration.Method Detail |
---|
public static Generator.XMLBeansModel parseConfig(java.io.InputStream config) throws java.io.IOException, ConfigurationException
config
- The input configuration stream.
ConfigurationException
- Bad listener ESB configuration.
java.io.IOException
- Unable to read the ESB listener configuration.public void generate() throws ConfigurationException
ConfigurationException
- Failed to generate configuration set.public void generate(java.io.File outdir) throws ConfigurationException
outdir
- The output directory to where the configuration set is to be generated.
The directory will be created if it doesn't already exist.
ConfigurationException
- Failed to generate configuration set.public static java.util.Properties toProperties(java.util.List<PropertyDocument.Property> configProperties)
public Generator.XMLBeansModel getModel()
public static boolean exposesInVMListener(ServiceDocument.Service service)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |