xsmeral.pipe.context
Interface ContextAware

All Known Subinterfaces:
ObjectProcessor
All Known Implementing Classes:
AbstractObjectProcessor, LocalObjectFilter, LocalObjectSink, LocalObjectSource

public interface ContextAware

Indicates processor's capability of accessing a shared ProcessingContext.


Method Summary
 ProcessingContext getContext()
          Returns the associated processing context.
 void initContext()
          Initializes (reflectively) the values of all fields annotated with FromContext with values taken from the context.
 void setContext(ProcessingContext ctx)
          Associates the processor with the given context.
 

Method Detail

getContext

ProcessingContext getContext()
Returns the associated processing context.


initContext

void initContext()
                 throws ObjectProcessorException
Initializes (reflectively) the values of all fields annotated with FromContext with values taken from the context. The context parameter name is either the field name or a name specified as an argument of FromContext.

Throws:
ObjectProcessorException

setContext

void setContext(ProcessingContext ctx)
                throws ObjectProcessorException
Associates the processor with the given context.

Throws:
ObjectProcessorException