org.jboss.soa.esb.listeners.config
Class ModelUtil
java.lang.Object
org.jboss.soa.esb.listeners.config.ModelUtil
public abstract class ModelUtil
- extends java.lang.Object
ESB configuration model utility methods.
- Author:
- tom.fennelly@jboss.com
Method Summary |
static java.util.Map<java.lang.String,java.util.List<ConfigTree>> |
getListenerGroups(ModelAdapter model)
Get the lister groups (by busIdRef) in the supplied configuration model. |
static void |
updateWebModel(java.lang.String deploymentName,
java.util.Map<java.lang.String,java.util.List<ConfigTree>> listenerGroups,
org.jboss.internal.soa.esb.listeners.war.WebModel webModel)
Update the supplied WebModel based on the supplied listener group
configurations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelUtil
public ModelUtil()
getListenerGroups
public static java.util.Map<java.lang.String,java.util.List<ConfigTree>> getListenerGroups(ModelAdapter model)
throws ConfigurationException
- Get the lister groups (by busIdRef) in the supplied configuration model.
Only looks at gateways at the moment.
- Parameters:
model
- The configuration model.
- Returns:
- A
Map
containing Lists of listener configurations, by busIdRef.
- Throws:
ConfigurationException
- Unable to convert the model to a DOM.
updateWebModel
public static void updateWebModel(java.lang.String deploymentName,
java.util.Map<java.lang.String,java.util.List<ConfigTree>> listenerGroups,
org.jboss.internal.soa.esb.listeners.war.WebModel webModel)
throws ConfigurationException
- Update the supplied
WebModel
based on the supplied listener group
configurations.
- Parameters:
listenerGroups
- Listener group configurations, keyed by busrefid.webModel
- The webmodel to be updated.
- Throws:
ConfigurationException
- A Configuration exception occured mapping data onto
the WebModel.