org.mule.impl
Class MuleDescriptor

java.lang.Object
  extended byorg.mule.impl.ImmutableMuleDescriptor
      extended byorg.mule.impl.MuleDescriptor
All Implemented Interfaces:
UMODescriptor, UMOImmutableDescriptor

public class MuleDescriptor
extends ImmutableMuleDescriptor
implements UMODescriptor

MuleDescriptor describes all the properties for a Mule UMO. New Mule UMOs can be initialised as needed from their descriptor.

Version:
$Revision: 1.1.1.1 $
Author:
Ross Mason

Field Summary
static java.lang.String DEFAULT_INSTANCE_REF_NAME
           
 
Fields inherited from class org.mule.impl.ImmutableMuleDescriptor
containerManaged, exceptionStrategy, IMPLEMENTATION_TYPE_LOCAL, implementationReference, inboundEndpoint, inboundRouter, inboundTransformer, initialisationCallbacks, intecerptorList, MULE_PROPERTY_DOT_PROPERTIES, name, outboundEndpoint, outboundRouter, outboundTransformer, poolingProfile, properties, queueProfile, responseRouter, threadingProfile, version
 
Constructor Summary
MuleDescriptor()
          Default constructor.
MuleDescriptor(MuleDescriptor descriptor)
           
MuleDescriptor(java.lang.String name)
           
 
Method Summary
 void addInitialisationCallback(InitialisationCallback callback)
           
 void addInterceptor(UMOInterceptor inteceptor)
          Interceptors are executable objects that can be chained together.
 void initialise()
           
 void setContainerManaged(boolean value)
           
 void setExceptionStrategy(UMOExceptionStrategy exceptionStrategy)
          The exception strategy to use to handle exceptions in the Mule UMO.
 void setImplementation(java.lang.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(java.lang.Object instance)
           
 void setInboundEndpoint(UMOEndpoint endpoint)
          The inbound endpointUri to use when receiveing an event.
 void setInboundRouter(UMOInboundMessageRouter routerList)
          Inbound Routers control how events are received by a component.
 void setInboundTransformer(UMOTransformer transformer)
           
 void setInterceptors(java.util.List inteceptorList)
          Interceptors are executable objects that can be chained together.
 void setName(java.lang.String newName)
          sets the identifier for the Mule UMO created from the descriptor
 void setOutboundEndpoint(UMOEndpoint endpoint)
          The outbound Provider to use when sending an event.
 void setOutboundRouter(UMOOutboundMessageRouter routerList)
          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(java.util.HashMap props)
           
 void setQueueProfile(QueueProfile queueProfile)
           
 void setResponseRouter(UMOResponseMessageRouter router)
          Response Routers control how events are returned in a request/response call.
 void setThreadingProfile(ThreadingProfile threadingProfile)
           
 void setVersion(java.lang.String ver)
          The version on the Mule UMO.
 
Methods inherited from class org.mule.impl.ImmutableMuleDescriptor
fireInitialisationCallbacks, getExceptionStrategy, getImplementation, getImplementationClass, getImplementationForReference, getInboundEndpoint, getInboundRouter, getInboundTransformer, getInterceptors, getName, getOutboundEndpoint, getOutboundRouter, getOutboundTransformer, getPoolingProfile, getProperties, getQueueProfile, getResponseRouter, getThreadingProfile, getVersion, isContainerManaged, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.umo.UMOImmutableDescriptor
getExceptionStrategy, getImplementation, getImplementationClass, getInboundEndpoint, getInboundRouter, getInboundTransformer, getInterceptors, getName, getOutboundEndpoint, getOutboundRouter, getOutboundTransformer, getProperties, getResponseRouter, getVersion
 

Field Detail

DEFAULT_INSTANCE_REF_NAME

public static final java.lang.String DEFAULT_INSTANCE_REF_NAME
See Also:
Constant Field Values
Constructor Detail

MuleDescriptor

public MuleDescriptor(java.lang.String name)

MuleDescriptor

public MuleDescriptor(MuleDescriptor descriptor)

MuleDescriptor

public MuleDescriptor()
Default constructor. Initalises common properties for the MuleConfiguration object

See Also:
MuleConfiguration
Method Detail

setThreadingProfile

public void setThreadingProfile(ThreadingProfile threadingProfile)

setExceptionStrategy

public void setExceptionStrategy(UMOExceptionStrategy exceptionStrategy)
Description copied from interface: UMODescriptor
The exception strategy to use to handle exceptions in the Mule UMO.

Specified by:
setExceptionStrategy in interface UMODescriptor
Parameters:
exceptionStrategy - the exception strategy to use. If none has been set or argument is null a default will be used.

setName

public void setName(java.lang.String newName)
Description copied from interface: UMODescriptor
sets the identifier for the Mule UMO created from the descriptor

Specified by:
setName in interface UMODescriptor
Parameters:
newName - the identifier for the Mule UMO created from the descriptor

setOutboundTransformer

public void setOutboundTransformer(UMOTransformer transformer)
Description copied from interface: UMODescriptor
The transformer to use when sending events or data.

Specified by:
setOutboundTransformer in interface UMODescriptor
Parameters:
transformer - the transformer to use.
See Also:
UMOTransformer, AbstractTransformer

setProperties

public void setProperties(java.util.HashMap props)
Specified by:
setProperties in interface UMODescriptor
Parameters:
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 created

setVersion

public void setVersion(java.lang.String ver)
Description copied from interface: UMODescriptor
The version on the Mule UMO. This is currently not used by the mule run-time but may be used in future.

Specified by:
setVersion in interface UMODescriptor
Parameters:
ver - the version of the Mule descriptor

setInboundEndpoint

public void setInboundEndpoint(UMOEndpoint endpoint)
                        throws MuleException
Description copied from interface: UMODescriptor
The inbound endpointUri to use when receiveing an event.

Specified by:
setInboundEndpoint in interface UMODescriptor
Parameters:
endpoint - the inbound endpoint to use
Throws:
MuleException - if the Provider is not valid i.e. the proivder is not a receiver
See Also:
UMOEndpoint

setOutboundEndpoint

public void setOutboundEndpoint(UMOEndpoint endpoint)
                         throws MuleException
Description copied from interface: UMODescriptor
The outbound Provider to use when sending an event.

Specified by:
setOutboundEndpoint in interface UMODescriptor
Parameters:
endpoint - the outbound endpoint to use
Throws:
MuleException - if the Provider is not valid i.e. the proivder is a receiver
See Also:
UMOEndpoint

setInboundTransformer

public void setInboundTransformer(UMOTransformer transformer)
Specified by:
setInboundTransformer in interface UMODescriptor
Parameters:
transformer - the transformer to use.
See Also:
UMOTransformer, AbstractTransformer

addInterceptor

public void addInterceptor(UMOInterceptor inteceptor)
Description copied from interface: UMODescriptor
Interceptors are executable objects that can be chained together. Interceptors are executed in the order they are added, for example if INTERCEPTOR_1 is added and then INTERCEPTOR_2 is added to UMO_A the execution order will be: INTERCEPTOR_1 -> INTERCEPTOR_2 -> UMO_A.

Specified by:
addInterceptor in interface UMODescriptor
Parameters:
inteceptor - the interceptor to add.

setInterceptors

public void setInterceptors(java.util.List inteceptorList)
Description copied from interface: UMODescriptor
Interceptors are executable objects that can be chained together. Interceptors are executed in the order they are added, for example if INTERCEPTOR_1 is added and then INTERCEPTOR_2 is added to UMO_A the execution order will be: INTERCEPTOR_1 -> INTERCEPTOR_2 -> UMO_A.

Specified by:
setInterceptors in interface UMODescriptor
Parameters:
inteceptorList - A list of interceptors to associate.

setPoolingProfile

public void setPoolingProfile(PoolingProfile poolingProfile)

setQueueProfile

public void setQueueProfile(QueueProfile queueProfile)

setImplementation

public void setImplementation(java.lang.Object reference)
Description copied from interface: UMODescriptor
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

Specified by:
setImplementation in interface UMODescriptor
Parameters:
reference - The String object reference

setImplementationInstance

public void setImplementationInstance(java.lang.Object instance)

setInboundRouter

public void setInboundRouter(UMOInboundMessageRouter routerList)
Description copied from interface: UMODescriptor
Inbound Routers control how events are received by a component. If no router is set. A default will be used that uses the inboundProvider set on his descriptor.

Specified by:
setInboundRouter in interface UMODescriptor
Parameters:
routerList - the inbound router for this component
See Also:
UMOInboundMessageRouter

setOutboundRouter

public void setOutboundRouter(UMOOutboundMessageRouter routerList)
Description copied from interface: UMODescriptor
Outbound Routers control how events are published by a component once. the event has been processed. If no router is set. A default will be used that uses the outboundProvider set on his descriptor to route the event.

Specified by:
setOutboundRouter in interface UMODescriptor
Parameters:
routerList - the outbound router for this component
See Also:
UMOOutboundMessageRouter

setContainerManaged

public void setContainerManaged(boolean value)

initialise

public void initialise()
                throws InitialisationException
Throws:
InitialisationException

addInitialisationCallback

public void addInitialisationCallback(InitialisationCallback callback)

setResponseRouter

public void setResponseRouter(UMOResponseMessageRouter router)
Response Routers control how events are returned in a request/response call. It cn be use to aggregate response events before returning, thus acting as a Join in a forked process. This can be used to make request/response calls a lot more efficient as independent tasks can be forked, execute concurrently and then join before the request completes

Specified by:
setResponseRouter in interface UMODescriptor
Parameters:
router - the response router for this component
See Also:
UMOResponseMessageRouter


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.