|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.config.builders.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 | |
UMODescriptor |
createDescriptor(java.lang.String implementation,
java.lang.String name,
java.lang.String inboundEndpointUri,
java.lang.String outboundEndpointUri,
java.util.Map properties)
Creates a Mule Descriptor that can be further maniputalted by the calling class before registering it with the UMOModel |
UMODescriptor |
createDescriptor(java.lang.String implementation,
java.lang.String name,
UMOEndpointURI inboundEndpointUri,
UMOEndpointURI outboundEndpointUri,
java.util.Map properties)
Creates a Mule Descriptor that can be further maniputalted by the calling class before registering it with the UMOModel |
UMOManager |
createStartedManager(boolean synchronous,
java.lang.String serverUrl)
Configures a started manager. |
UMOManager |
createStartedManager(boolean synchronous,
java.lang.String serverUrl,
UMOConnector serverConnector)
Configures a started manager. |
void |
disposeCurrent()
Disposes the current MuleManager if there is one. |
UMOComponent |
registerComponent(java.lang.String implementation,
java.lang.String name,
UMOEndpointURI inboundEndpointUri)
Registers a java object as a Umo pcomponent that listens for events on the given url. |
UMOComponent |
registerComponent(java.lang.String implementation,
java.lang.String name,
UMOEndpointURI inboundEndpointUri,
java.util.Map properties)
Registers a java object as a Umo pcomponent that listens for events on the given url. |
UMOComponent |
registerComponent(java.lang.String implementation,
java.lang.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(java.lang.String implementation,
java.lang.String name,
UMOEndpointURI inboundEndpointUri,
UMOEndpointURI outboundEndpointUri,
java.util.Map properties)
Registers a java object as a Umo pcomponent that listens for and sends events on the given urls. |
void |
registerComponent(UMODescriptor descriptor)
Registers a user configured MuleDescriptor of a components to the server. |
UMODescriptor |
registerComponentInstance(java.lang.Object component,
java.lang.String name,
UMOEndpointURI listenerEndpointUri)
Registers a java object as a Umo pcomponent that listens for events on the given url. |
UMODescriptor |
registerComponentInstance(java.lang.Object component,
java.lang.String name,
UMOEndpointURI listenerEndpointUri,
UMOEndpointURI sendEndpointUri)
Registers a java object as a Umo pcomponent that listens for and sends events on the given urls. |
void |
setContainerContext(UMOContainerContext ctx)
Sets the component resolver on the model. |
void |
unregisterComponent(java.lang.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) throws UMOException
disposeCurrent
- true to dispose the current manager
UMOException
- if the manager throws an exception when
disposingMethod Detail |
public void disposeCurrent() throws UMOException
UMOException
- if there is a current Manager and it fails to shutdownpublic UMOManager createStartedManager(boolean synchronous, java.lang.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, java.lang.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(java.lang.Object component, java.lang.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(java.lang.Object component, java.lang.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 void 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(java.lang.String implementation, java.lang.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(java.lang.String implementation, java.lang.String name, UMOEndpointURI inboundEndpointUri, java.util.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(java.lang.String implementation, java.lang.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(java.lang.String implementation, java.lang.String name, UMOEndpointURI inboundEndpointUri, UMOEndpointURI outboundEndpointUri, java.util.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(java.lang.String implementation, java.lang.String name, java.lang.String inboundEndpointUri, java.lang.String outboundEndpointUri, java.util.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(java.lang.String implementation, java.lang.String name, UMOEndpointURI inboundEndpointUri, UMOEndpointURI outboundEndpointUri, java.util.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 void setContainerContext(UMOContainerContext ctx) throws UMOException
ctx
-
UMOException
public void unregisterComponent(java.lang.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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |