|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttachedProcessor
An attached processor can be used to inject resources, monitor object processors,
control the pipe or manipulate the processing context.
It runs independently of object processors, in a daemon thread.
The associated Pipe shouldn't be referenced in the constructor or the
initialize
method.
Pipe
,
ProcessingContext
Method Summary | |
---|---|
boolean |
canStart()
Indicates whether this processor has met conditions for starting. |
void |
chainStopped()
Called after all object processors in chain stopped running. |
AttachedProcessor |
initialize(Map<String,String> params)
Initializes the processor with given parameter map and returns itself. |
void |
postContext()
Called after context has been assigned to all processors. |
void |
preContext()
Called before context is assigned to object processors, can be used for resource injection. |
void |
setPipe(Pipe pipe)
Associates the processor with a Pipe. |
void |
stop()
Signals the processor to release resources and cease running. |
Methods inherited from interface java.lang.Runnable |
---|
run |
Method Detail |
---|
AttachedProcessor initialize(Map<String,String> params)
void preContext()
void postContext()
void chainStopped()
void stop()
void setPipe(Pipe pipe)
boolean canStart()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |