com.espertech.esper.pattern.guard
Interface GuardFactory

All Known Implementing Classes:
GuardFactorySupport, TimerWithinGuardFactory

public interface GuardFactory

Interface for a factory for Guard instances.


Method Summary
 Guard makeGuard(PatternContext context, Quitable quitable, Object stateNodeId, Object guardState)
          Constructs a guard instance.
 void setGuardParameters(List<Object> guardParameters)
          Sets the guard object parameters.
 

Method Detail

setGuardParameters

void setGuardParameters(List<Object> guardParameters)
                        throws GuardParameterException
Sets the guard object parameters.

Parameters:
guardParameters - is a list of parameters
Throws:
GuardParameterException - thrown to indicate a parameter problem

makeGuard

Guard makeGuard(PatternContext context,
                Quitable quitable,
                Object stateNodeId,
                Object guardState)
Constructs a guard instance.

Parameters:
context - - services for use by guard
quitable - - to use for indicating the guard has quit
stateNodeId - - a node id for the state object
guardState - - state node for guard
Returns:
guard instance

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com