public abstract class AbstractComponent extends org.mule.runtime.api.meta.AbstractAnnotatedObject implements Component, MuleContextAware, org.mule.runtime.api.lifecycle.Lifecycle, MessagingExceptionHandlerAware
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractComponent.AnnotatedProcessor
Annotated processor only meant to be used internal for the creation of the processors inside the component chain.
|
ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected FlowConstruct |
flowConstruct |
protected MessageProcessorChain |
interceptorChain |
protected List<Interceptor> |
interceptors |
protected ComponentLifecycleManager |
lifecycleManager |
protected org.slf4j.Logger |
logger
logger used by this class
|
protected MuleContext |
muleContext |
protected ServerNotificationHandler |
notificationHandler |
protected ComponentStatistics |
statistics |
| Constructor and Description |
|---|
AbstractComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyLifecycleAndDependencyInjection(Object object) |
protected Event |
createResultEvent(Event event,
Event.Builder resultEventBuilder,
Object result) |
void |
dispose() |
protected void |
doDispose() |
protected void |
doInitialise() |
protected abstract Object |
doInvoke(Event event,
Event.Builder eventBuilder) |
protected void |
doStart() |
protected void |
doStop() |
protected void |
fireComponentNotification(Event event,
int action) |
FlowConstruct |
getFlowConstruct() |
List<Interceptor> |
getInterceptors() |
protected String |
getName() |
ComponentStatistics |
getStatistics()
Component statistics are used to gather component statistics such as sync/async invocation counts and total and average
execution time.
|
void |
initialise() |
Event |
process(Event event)
Invokes the MessageProcessor.
|
void |
release() |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setInterceptors(List<Interceptor> interceptors) |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
setMuleContext(MuleContext context) |
void |
start() |
void |
stop() |
String |
toString() |
getAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProcessingTypeprotected final org.slf4j.Logger logger
protected FlowConstruct flowConstruct
protected ComponentStatistics statistics
protected ServerNotificationHandler notificationHandler
protected List<Interceptor> interceptors
protected MessageProcessorChain interceptorChain
protected MuleContext muleContext
protected ComponentLifecycleManager lifecycleManager
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarecontext - the Mule node.public List<Interceptor> getInterceptors()
public void setInterceptors(List<Interceptor> interceptors)
public Event process(Event event) throws org.mule.runtime.api.exception.MuleException
Processorprotected Event createResultEvent(Event event, Event.Builder resultEventBuilder, Object result) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected abstract Object doInvoke(Event event, Event.Builder eventBuilder) throws Exception
Exceptionpublic void release()
public ComponentStatistics getStatistics()
ComponentgetStatistics in interface Componentpublic void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic FlowConstruct getFlowConstruct()
public final void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionprotected void applyLifecycleAndDependencyInjection(Object object) throws org.mule.runtime.api.lifecycle.InitialisationException
org.mule.runtime.api.lifecycle.InitialisationExceptionprotected void doInitialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
org.mule.runtime.api.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposableprotected void doDispose()
public void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionprotected void doStart()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionprotected void doStop()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected void fireComponentNotification(Event event, int action)
protected String getName()
public void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler in interface MessagingExceptionHandlerAwareCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.