|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xsmeral.pipe.PipeAttachedProcessor
public class PipeAttachedProcessor
Basic attached processor associated to a Pipe instance.
Field Summary | |
---|---|
protected boolean |
error
|
Constructor Summary | |
---|---|
PipeAttachedProcessor()
|
Method Summary | |
---|---|
boolean |
canStart()
Indicates whether this processor has met conditions for starting. |
protected void |
detach()
The processor removes itself from the Pipe's list of attached processors. |
Map<String,String> |
getParams()
Returns the parameter map used to initialize this processor. |
Pipe |
getPipe()
Returns the associated Pipe. |
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 |
run()
Starts the processor. |
void |
setParams(Map<String,String> params)
|
void |
setPipe(Pipe pipe)
Associates the processor with a Pipe. |
void |
stop()
Signals the processor to release resources and cease running. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean error
Constructor Detail |
---|
public PipeAttachedProcessor()
Method Detail |
---|
public AttachedProcessor initialize(Map<String,String> params)
AttachedProcessor
initialize
in interface AttachedProcessor
public void setPipe(Pipe pipe)
AttachedProcessor
setPipe
in interface AttachedProcessor
public Pipe getPipe()
public Map<String,String> getParams()
public void setParams(Map<String,String> params)
public boolean canStart()
AttachedProcessor
canStart
in interface AttachedProcessor
public void preContext()
AttachedProcessor
preContext
in interface AttachedProcessor
public void postContext()
AttachedProcessor
postContext
in interface AttachedProcessor
public void chainStopped()
AttachedProcessor
chainStopped
in interface AttachedProcessor
public void stop()
AttachedProcessor
stop
in interface AttachedProcessor
public void run()
run
in interface Runnable
protected void detach()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |