org.mule.processor
Class AbstractMessageProcessorOwner
java.lang.Object
org.mule.processor.AbstractMessageProcessorOwner
- All Implemented Interfaces:
- AnnotatedObject, FlowConstructAware, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable
- Direct Known Subclasses:
- AbstractExceptionStrategy, AbstractOutboundRouter, AsyncDelegateMessageProcessor, CachingMessageProcessor, MessageEnricher, WireTap
public abstract class AbstractMessageProcessorOwner
- extends Object
- implements Lifecycle, MuleContextAware, FlowConstructAware, AnnotatedObject
An object that owns message processors and delegates startup/shutdown events to them.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
muleContext
protected MuleContext muleContext
flowConstruct
protected FlowConstruct flowConstruct
AbstractMessageProcessorOwner
public AbstractMessageProcessorOwner()
setMuleContext
public void setMuleContext(MuleContext context)
- Specified by:
setMuleContext
in interface MuleContextAware
setFlowConstruct
public void setFlowConstruct(FlowConstruct flowConstruct)
- Specified by:
setFlowConstruct
in interface FlowConstructAware
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
dispose
public void dispose()
- Description copied from interface:
Disposable
- A lifecycle method where implementor should free up any resources. If an
exception is thrown it should just be logged and processing should continue.
This method should not throw Runtime exceptions.
- Specified by:
dispose
in interface Disposable
start
public void start()
throws MuleException
- Specified by:
start
in interface Startable
- Throws:
MuleException
stop
public void stop()
throws MuleException
- Specified by:
stop
in interface Stoppable
- Throws:
MuleException
getAnnotation
public final Object getAnnotation(QName name)
- Description copied from interface:
AnnotatedObject
- Gets the value of specified annotation.
- Specified by:
getAnnotation
in interface AnnotatedObject
- Returns:
- the value of specified annotation
getAnnotations
public final Map<QName,Object> getAnnotations()
- Description copied from interface:
AnnotatedObject
- Gets all annotations.
- Specified by:
getAnnotations
in interface AnnotatedObject
- Returns:
- all annotation
setAnnotations
public final void setAnnotations(Map<QName,Object> newAnnotations)
- Description copied from interface:
AnnotatedObject
- Sets annotations to the object.
- Specified by:
setAnnotations
in interface AnnotatedObject
getOwnedMessageProcessors
protected abstract List<MessageProcessor> getOwnedMessageProcessors()
Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.