|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.config.builders.QuickConfigurationBuilder
public class QuickConfigurationBuilder
QuickConfigurationBuilder
is a configuration helper that can be
used by clients, configuration scripts or test cases to quickly configure a
manager.
Constructor Summary | |
---|---|
QuickConfigurationBuilder()
Constructs a default builder |
|
QuickConfigurationBuilder(boolean disposeCurrent)
Will construct a new Quick Config builder with the option of disposing of the current Manager if one exists |
Method Summary | |
---|---|
UMOManager |
configure(ReaderResource[] configResources)
|
UMOManager |
configure(ReaderResource[] configResources,
Properties startupProperties)
Will configure a UMOManager based on the configurations made available through Readers |
UMOManager |
configure(String configResources)
Will configure a UMOManager based on the configuration file(s) provided. |
UMOManager |
configure(String configResources,
String startupPropertiesFile)
Will configure a UMOManager based on the configuration file(s) provided. |
UMODescriptor |
createDescriptor(String implementation,
String name,
String inboundEndpointUri,
String outboundEndpointUri,
Map properties)
Creates a Mule Descriptor that can be further maniputalted by the calling class before registering it with the UMOModel |
UMODescriptor |
createDescriptor(String implementation,
String name,
UMOEndpoint inboundEndpoint,
UMOEndpoint outboundEndpoint,
Map properties)
Creates a Mule Descriptor that can be further maniputalted by the calling class before registering it with the UMOModel |
UMODescriptor |
createDescriptor(String implementation,
String name,
UMOEndpointURI inboundEndpointUri,
UMOEndpointURI outboundEndpointUri,
Map properties)
Creates a Mule Descriptor that can be further maniputalted by the calling class before registering it with the UMOModel |
UMOEndpoint |
createEndpoint(String uri,
String name,
boolean inbound)
|
UMOEndpoint |
createEndpoint(String uri,
String name,
boolean inbound,
String transformers)
|
UMOEndpoint |
createEndpoint(String uri,
String name,
boolean inbound,
String transformers,
UMOFilter filter)
|
UMOEndpoint |
createEndpoint(String uri,
String name,
boolean inbound,
UMOFilter filter)
|
UMOManager |
createStartedManager(boolean synchronous,
String serverUrl)
Configures a started manager. |
UMOManager |
createStartedManager(boolean synchronous,
String serverUrl,
String modeltype)
Configures a started manager. |
UMOManager |
createStartedManager(boolean synchronous,
String serverUrl,
UMOConnector serverConnector)
Configures a started manager. |
void |
disableAdminAgent()
|
void |
disposeCurrent()
Disposes the current MuleManager if there is one. |
UMOManager |
getManager()
|
protected UMOModel |
getModel()
|
boolean |
isConfigured()
|
UMOComponent |
registerComponent(String implementation,
String name,
String inboundEndpoint,
String outboundEndpoint,
Map properties)
|
UMOComponent |
registerComponent(String implementation,
String name,
UMOEndpoint inEndpoint,
UMOEndpoint outEndpoint,
Map properties)
|
UMOComponent |
registerComponent(String implementation,
String name,
UMOEndpointURI inboundEndpointUri)
Registers a java object as a Umo pcomponent that listens for events on the given url. |
UMOComponent |
registerComponent(String implementation,
String name,
UMOEndpointURI inboundEndpointUri,
Map properties)
Registers a java object as a Umo pcomponent that listens for events on the given url. |
UMOComponent |
registerComponent(String implementation,
String name,
UMOEndpointURI inboundEndpointUri,
UMOEndpointURI outboundEndpointUri)
Registers a java object as a Umo pcomponent that listens for and sends events on the given urls. |
UMOComponent |
registerComponent(String implementation,
String name,
UMOEndpointURI inboundEndpointUri,
UMOEndpointURI outboundEndpointUri,
Map properties)
Registers a java object as a Umo pcomponent that listens for and sends events on the given urls. |
UMOComponent |
registerComponent(UMODescriptor descriptor)
Registers a user configured MuleDescriptor of a components to the server. |
UMODescriptor |
registerComponentInstance(Object component,
String name,
UMOEndpointURI listenerEndpointUri)
Registers a java object as a Umo pcomponent that listens for events on the given url. |
UMODescriptor |
registerComponentInstance(Object component,
String name,
UMOEndpointURI listenerEndpointUri,
UMOEndpointURI sendEndpointUri)
Registers a java object as a Umo pcomponent that listens for and sends events on the given urls. |
UMOEndpoint |
registerEndpoint(String uri,
String name,
boolean inbound)
|
UMOEndpoint |
registerEndpoint(String uri,
String name,
boolean inbound,
Map properties)
|
UMOEndpoint |
registerEndpoint(String uri,
String name,
boolean inbound,
Map properties,
UMOFilter filter)
|
void |
registerModel(String modelType,
String name)
|
void |
registerModel(UMOModel model)
|
void |
setContainerContext(UMOContainerContext ctx)
Sets the component resolver on the model. |
void |
unregisterComponent(String name)
Unregisters a previously register components. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuickConfigurationBuilder()
public QuickConfigurationBuilder(boolean disposeCurrent)
disposeCurrent
- true to dispose the current managerMethod Detail |
---|
public void disposeCurrent()
public void disableAdminAgent()
public void registerModel(String modelType, String name) throws UMOException
UMOException
public UMOManager createStartedManager(boolean synchronous, String serverUrl, String modeltype) throws UMOException
synchronous
- whether to start the manager in synchronous modeserverUrl
- the url used to receive client requests, or null if the
server listening components should not be set up
UMOException
- if the manager is already started or it fails to startpublic UMOManager createStartedManager(boolean synchronous, String serverUrl) throws UMOException
synchronous
- whether to start the manager in synchronous modeserverUrl
- the url used to receive client requests, or null if the
server listening components should not be set up
UMOException
- if the manager is already started or it fails to startpublic UMOManager createStartedManager(boolean synchronous, String serverUrl, UMOConnector serverConnector) throws UMOException
synchronous
- whether to start the manager in synchronous modeserverUrl
- the url used to receive client requests, or null if the
server listening components should not be set upserverConnector
- The server connector to use for the serverUrl
UMOException
- if the manager is already started or it fails to startpublic UMODescriptor registerComponentInstance(Object component, String name, UMOEndpointURI listenerEndpointUri) throws UMOException
component
- any java object, Mule will it's endpointUri discovery to
determine which event to invoke based on the evnet payload typename
- The identifying name of the components. This can be used to later
unregister itlistenerEndpointUri
- The url endpointUri to listen to
UMOException
public UMODescriptor registerComponentInstance(Object component, String name, UMOEndpointURI listenerEndpointUri, UMOEndpointURI sendEndpointUri) throws UMOException
component
- any java object, Mule will it's endpointUri discovery to
determine which event to invoke based on the evnet payload typename
- The identifying name of the components. This can be used to later
unregister itlistenerEndpointUri
- The url endpointUri to listen tosendEndpointUri
- The url endpointUri to dispatch to
UMOException
public UMOComponent registerComponent(String implementation, String name, String inboundEndpoint, String outboundEndpoint, Map properties) throws UMOException
UMOException
public UMOComponent registerComponent(String implementation, String name, UMOEndpoint inEndpoint, UMOEndpoint outEndpoint, Map properties) throws UMOException
UMOException
public UMOComponent registerComponent(UMODescriptor descriptor) throws UMOException
MyBean implementation = new MyBean();
descriptor.setImplementationInstance(implementation);
Calling this method is equivilent to calling UMOModel.registerComponent(..)
descriptor
- the componet descriptor to register
UMOException
- the descriptor is invalid or cannot be initialised or
startedUMOModel
public UMOComponent registerComponent(String implementation, String name, UMOEndpointURI inboundEndpointUri) throws UMOException
implementation
- either a container refernece to an object or a fully
qualified class name to use as the component implementationname
- The identifying name of the components. This can be used to later
unregister itinboundEndpointUri
- The url endpointUri to listen to
UMOException
public UMOComponent registerComponent(String implementation, String name, UMOEndpointURI inboundEndpointUri, Map properties) throws UMOException
implementation
- either a container refernece to an object or a fully
qualified class name to use as the component implementationname
- The identifying name of the components. This can be used to later
unregister itinboundEndpointUri
- The url endpointUri to listen toproperties
- properties to set on the component
UMOException
public UMOComponent registerComponent(String implementation, String name, UMOEndpointURI inboundEndpointUri, UMOEndpointURI outboundEndpointUri) throws UMOException
implementation
- either a container refernece to an object or a fully
qualified class name to use as the component implementation which
event to invoke based on the evnet payload typename
- The identifying name of the components. This can be used to later
unregister itinboundEndpointUri
- The url endpointUri to listen tooutboundEndpointUri
- The url endpointUri to dispatch to
UMOException
public UMOComponent registerComponent(String implementation, String name, UMOEndpointURI inboundEndpointUri, UMOEndpointURI outboundEndpointUri, Map properties) throws UMOException
implementation
- either a container refernece to an object or a fully
qualified class name to use as the component implementation which
event to invoke based on the evnet payload typename
- The identifying name of the components. This can be used to later
unregister itinboundEndpointUri
- The url endpointUri to listen tooutboundEndpointUri
- The url endpointUri to dispatch toproperties
- properties to set on the component
UMOException
public UMODescriptor createDescriptor(String implementation, String name, String inboundEndpointUri, String outboundEndpointUri, Map properties) throws UMOException
implementation
- either a container refernece to an object or a fully
qualified class name to use as the component implementation which
event to invoke based on the evnet payload typename
- The identifying name of the component. This can be used to later
unregister itinboundEndpointUri
- The url endpointUri to listen to. Can be nulloutboundEndpointUri
- The url endpointUri to dispatch to. Can be nullproperties
- properties to set on the component. Can be null
UMOException
public UMODescriptor createDescriptor(String implementation, String name, UMOEndpointURI inboundEndpointUri, UMOEndpointURI outboundEndpointUri, Map properties) throws UMOException
implementation
- either a container refernece to an object or a fully
qualified class name to use as the component implementation which
event to invoke based on the evnet payload typename
- The identifying name of the component. This can be used to later
unregister itinboundEndpointUri
- The url endpointUri to listen to. Can be nulloutboundEndpointUri
- The url endpointUri to dispatch to. Can be nullproperties
- properties to set on the component. Can be null
UMOException
public UMODescriptor createDescriptor(String implementation, String name, UMOEndpoint inboundEndpoint, UMOEndpoint outboundEndpoint, Map properties) throws UMOException
implementation
- either a container refernece to an object or a fully
qualified class name to use as the component implementation which
event to invoke based on the evnet payload typename
- The identifying name of the component. This can be used to later
unregister itinboundEndpoint
- The endpoint to listen to. Can be nulloutboundEndpoint
- The endpoint to dispatch to. Can be nullproperties
- properties to set on the component. Can be null
UMOException
public void setContainerContext(UMOContainerContext ctx) throws UMOException
ctx
-
UMOException
public void unregisterComponent(String name) throws UMOException
name
- the name of the componet to unregister
UMOException
- if unregistering the components fails, i.e. The
underlying transport fails to unregister a listener. If the
components does not exist, this method should not throw an
exception.UMOModel
public UMOEndpoint createEndpoint(String uri, String name, boolean inbound) throws UMOException
UMOException
public UMOEndpoint createEndpoint(String uri, String name, boolean inbound, String transformers) throws UMOException
UMOException
public UMOEndpoint createEndpoint(String uri, String name, boolean inbound, UMOFilter filter) throws UMOException
UMOException
public UMOEndpoint createEndpoint(String uri, String name, boolean inbound, String transformers, UMOFilter filter) throws UMOException
UMOException
public UMOEndpoint registerEndpoint(String uri, String name, boolean inbound) throws UMOException
UMOException
public UMOEndpoint registerEndpoint(String uri, String name, boolean inbound, Map properties) throws UMOException
UMOException
public UMOEndpoint registerEndpoint(String uri, String name, boolean inbound, Map properties, UMOFilter filter) throws UMOException
UMOException
public void registerModel(UMOModel model) throws UMOException
UMOException
public UMOManager getManager()
public UMOManager configure(String configResources) throws ConfigurationException
ConfigurationBuilder
configure
in interface ConfigurationBuilder
configResources
- a comma separated list of configuration files to load,
this should be accessible on the classpath or filesystem
ConfigurationException
public UMOManager configure(String configResources, String startupPropertiesFile) throws ConfigurationException
ConfigurationBuilder
configure
in interface ConfigurationBuilder
configResources
- - A comma-separated list of configuration files to
load, these should be accessible on the classpath or filesystemstartupPropertiesFile
- - An optional file containing startup properties.
This is useful for managing different environments (dev, test,
production)
ConfigurationException
public UMOManager configure(ReaderResource[] configResources) throws ConfigurationException
ConfigurationException
public UMOManager configure(ReaderResource[] configResources, Properties startupProperties) throws ConfigurationException
ConfigurationBuilder
configure
in interface ConfigurationBuilder
configResources
- - An array of Readers, each Reader contains a portion
of the Mule server configuration.startupProperties
- - Optional properties to be set before configuring
the Mule server. This is useful for managing different environments
(dev, test, production)
ConfigurationException
public boolean isConfigured()
isConfigured
in interface ConfigurationBuilder
protected UMOModel getModel() throws UMOException
UMOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |