public class ReferenceProcessor extends AbstractProcessor implements InterceptingMessageProcessor, FlowConstructAware, MuleContextAware, org.mule.runtime.api.lifecycle.Lifecycle
Processors referenced using the AnnotatedObject interface since the referenced object may be a singleton an the
metadata is related to the ReactiveProcessor.ProcessingType| Constructor and Description |
|---|
ReferenceProcessor(Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Event> |
apply(org.reactivestreams.Publisher<Event> publisher)
Applies a
Publisher function transforming a stream of Event's. |
void |
dispose() |
Processor |
getReferencedProcessor() |
void |
initialise() |
Event |
process(Event event)
Invokes the MessageProcessor.
|
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setListener(Processor listener)
Set the MessageProcessor listener that will be invoked when a message is received or generated.
|
void |
setMuleContext(MuleContext context) |
void |
start() |
void |
stop() |
getAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingTypepublic ReferenceProcessor(Processor processor)
public Event process(Event event) throws org.mule.runtime.api.exception.MuleException
Processorpublic org.reactivestreams.Publisher<Event> apply(org.reactivestreams.Publisher<Event> publisher)
ProcessorPublisher function transforming a stream of Event's.
The default implementation delegates to Processor.process(Event) and will:
Processor.process(Event) returns null.public Processor getReferencedProcessor()
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarecontext - the Mule node.public void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void setListener(Processor listener)
InterceptingMessageProcessorsetListener in interface InterceptingMessageProcessorCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.