|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.ImmutableMuleDescriptor
org.mule.impl.MuleDescriptor
MuleDescriptor
describes all the properties for a Mule UMO. New
Mule UMOs can be initialised as needed from their descriptor.
Field Summary | |
static String |
DEFAULT_INSTANCE_REF_NAME
|
Constructor Summary | |
MuleDescriptor()
Default constructor. |
|
MuleDescriptor(MuleDescriptor descriptor)
|
|
MuleDescriptor(String name)
|
Method Summary | |
void |
addInitialisationCallback(InitialisationCallback callback)
|
void |
addInterceptor(UMOInterceptor inteceptor)
Interceptors are executable objects that can be chained together. |
void |
setContainer(String containerName)
Sets the name of the contaier where the object for this descriptor resides. |
void |
setContainerManaged(boolean value)
|
void |
setEncoding(String encoding)
|
void |
setExceptionListener(ExceptionListener listener)
The exception strategy to use to handle exceptions in the Mule UMO. |
void |
setImplementation(Object reference)
The String used to instanciate create the object, this can be a FQ class name or a reference to an object in a configured container |
void |
setImplementationInstance(Object instance)
|
void |
setInboundEndpoint(UMOEndpoint endpoint)
The inbound endpointUri to use when receiveing an event. |
void |
setInboundRouter(UMOInboundRouterCollection router)
Inbound Routers control how events are received by a component. |
void |
setInboundTransformer(UMOTransformer transformer)
|
void |
setInitialState(String state)
Sets the initial state of this component |
void |
setInterceptors(List inteceptorList)
Interceptors are executable objects that can be chained together. |
void |
setModelName(String modelName)
Sets the Model name that this descriptor is registered within. |
void |
setName(String newName)
sets the identifier for the Mule UMO created from the descriptor |
void |
setNestedRouter(UMONestedRouterCollection router)
|
void |
setOutboundEndpoint(UMOEndpoint endpoint)
The outbound Provider to use when sending an event. |
void |
setOutboundRouter(UMOOutboundRouterCollection router)
Outbound Routers control how events are published by a component once. |
void |
setOutboundTransformer(UMOTransformer transformer)
The transformer to use when sending events or data. |
void |
setPoolingProfile(PoolingProfile poolingProfile)
|
void |
setProperties(Map props)
|
void |
setQueueProfile(QueueProfile queueProfile)
|
void |
setResponseRouter(UMOResponseRouterCollection router)
Response Routers control how events are returned in a request/response call. |
void |
setResponseTransformer(UMOTransformer transformer)
|
void |
setSingleton(boolean singleton)
Determines if only a single instance of this component is created. |
void |
setThreadingProfile(ThreadingProfile threadingProfile)
|
void |
setVersion(String ver)
The version on the Mule UMO. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mule.umo.lifecycle.Initialisable |
initialise |
Field Detail |
public static final String DEFAULT_INSTANCE_REF_NAME
Constructor Detail |
public MuleDescriptor(String name)
public MuleDescriptor(MuleDescriptor descriptor)
public MuleDescriptor()
MuleConfiguration
Method Detail |
public void setThreadingProfile(ThreadingProfile threadingProfile)
public void setExceptionListener(ExceptionListener listener)
UMODescriptor
setExceptionListener
in interface UMODescriptor
listener
- the exception strategy to use. If none has been set or
argument is null a defaultpublic void setName(String newName)
UMODescriptor
setName
in interface UMODescriptor
newName
- the identifier for the Mule UMO created from the descriptorpublic void setOutboundTransformer(UMOTransformer transformer)
UMODescriptor
setOutboundTransformer
in interface UMODescriptor
transformer
- the transformer to use.UMOTransformer
,
AbstractTransformer
public void setResponseTransformer(UMOTransformer transformer)
public void setProperties(Map props)
setProperties
in interface UMODescriptor
props
- the properties for the descriptor. These will be passed to the
UMO when it's initialise method is called or set as bean properties
whe the UMO is createdpublic void setVersion(String ver)
UMODescriptor
setVersion
in interface UMODescriptor
ver
- the version of the Mule descriptorpublic void setInboundEndpoint(UMOEndpoint endpoint) throws MuleException
UMODescriptor
setInboundEndpoint
in interface UMODescriptor
endpoint
- the inbound endpoint to use
MuleException
- if the Provider is not valid i.e. the proivder is not a
receiverUMOEndpoint
public void setOutboundEndpoint(UMOEndpoint endpoint) throws MuleException
UMODescriptor
setOutboundEndpoint
in interface UMODescriptor
endpoint
- the outbound endpoint to use
MuleException
- if the Provider is not valid i.e. the proivder is a
receiverUMOEndpoint
public void setInboundTransformer(UMOTransformer transformer)
setInboundTransformer
in interface UMODescriptor
transformer
- the transformer to use.UMOTransformer
,
AbstractTransformer
public void addInterceptor(UMOInterceptor inteceptor)
UMODescriptor
addInterceptor
in interface UMODescriptor
inteceptor
- the interceptor to add.public void setInterceptors(List inteceptorList)
UMODescriptor
setInterceptors
in interface UMODescriptor
inteceptorList
- A list of interceptors to associate.public void setPoolingProfile(PoolingProfile poolingProfile)
public void setQueueProfile(QueueProfile queueProfile)
public void setImplementation(Object reference)
UMODescriptor
setImplementation
in interface UMODescriptor
reference
- The String object referencepublic void setImplementationInstance(Object instance)
public void setInboundRouter(UMOInboundRouterCollection router)
UMODescriptor
setInboundRouter
in interface UMODescriptor
router
- the inbound router for this componentUMOInboundRouterCollection
public void setOutboundRouter(UMOOutboundRouterCollection router)
UMODescriptor
setOutboundRouter
in interface UMODescriptor
router
- the outbound router for this componentUMOOutboundRouterCollection
public void setNestedRouter(UMONestedRouterCollection router)
setNestedRouter
in interface UMODescriptor
public void setContainerManaged(boolean value)
public void addInitialisationCallback(InitialisationCallback callback)
public void setResponseRouter(UMOResponseRouterCollection router)
setResponseRouter
in interface UMODescriptor
router
- the response router for this componentUMOResponseRouterCollection
public void setSingleton(boolean singleton)
setSingleton
in interface UMODescriptor
singleton
- true if this component is a singletonpublic void setInitialState(String state)
setInitialState
in interface UMODescriptor
state
- the initial state of this componentImmutableMuleDescriptor.INITIAL_STATE_STARTED
,
ImmutableMuleDescriptor.INITIAL_STATE_STOPPED
,
ImmutableMuleDescriptor.INITIAL_STATE_PAUSED
public void setEncoding(String encoding)
setEncoding
in interface UMODescriptor
public void setContainer(String containerName)
setContainer
in interface UMODescriptor
containerName
- the container name, or null if it is not known - in which
case each container will be queried for the component
implementation.public void setModelName(String modelName)
UMODescriptor
setModelName
in interface UMODescriptor
modelName
- name of the model
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |