Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.processor
Class ProcessorFactory
Direct Known Subclasses:
       ThreePassProcessorFactory

public abstract class ProcessorFactory      
A factory pattern for processors (both message and event).
Abstract.
 
 

Method Summary
public abstract EventProcessor
public abstract MessageProcessor
public abstract Processor
public static ProcessorFactory
getFactory(String className)
Method Detail
createEventProcessor
public abstract EventProcessor createEventProcessor (ActiveAgent activeAgent, ProcessorConfiguration config, HandlerRegistry handlerRegistry)
 
creates an EventProcessor
Parameters:
activeAgent
the ActiveAgent to which the processor will register for
management functionality
config
the congiguation for the processor
handlerRegistry
a HandlreRegistry to be used by the processor during event
dispatching
Return:
an EventProcessor properly confired and ready to go
Abstract.
 

createMessageProcessor
public abstract MessageProcessor createMessageProcessor (ActiveAgent activeAgent, ProcessorConfiguration config, HandlerRegistry handlerRegistry)
 
creates a MessageProcessor
Parameters:
activeAgent
the ActiveAgent to which the processor will register for
management functionality
config
the congiguation for the processor
handlerRegistry
a HandlreRegistry to be used by the processor during event
dispatching
Return:
a MessageProcessor properly confired and ready to go
Abstract.
 

createProcessor
public abstract Processor createProcessor (ActiveAgent activeAgent, ProcessorConfiguration config, HandlerRegistry handlerRegistry)
 
creates a Processor
Parameters:
activeAgent
the ActiveAgent to which the processor will register for
management functionality
config
the congiguation for the processor
handlerRegistry
a HandlreRegistry to be used by the processor during event
dispatching
Return:
a Processor properly confired and ready to go
Abstract.
 

getFactory
public static ProcessorFactory getFactory (String className)
 
loads factory instance for ProcessorFatory
Parameters:
className
fully qualified name for factory implementation
Exceptions:
IllegalAccessException
if an error occurs creating the factory
InstantiationException
if an error occurs creating the factory
ExceptionInInitializerError
if an error occurs creating the factory
SecurityException
if an error occurs creating the factory
ClassNotFoundException
if an error occurs creating the factory
Return:
object instance of the specified class
Static.
Throws:
IllegalAccessException,InstantiationException,SecurityException,ClassNotFoundException
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD