| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.statemachine.context.SingletonStateContextLookup
public class SingletonStateContextLookup
StateContextLookup implementation which always returns the same
 StateContext instance.
| Constructor Summary | |
|---|---|
| SingletonStateContextLookup()Creates a new instance which always returns the same DefaultStateContextinstance. | |
| SingletonStateContextLookup(StateContextFactory contextFactory)Creates a new instance which uses the specified StateContextFactoryto create the single instance. | |
| Method Summary | |
|---|---|
|  StateContext | lookup(Object[] eventArgs)Searches the arguments from an Eventand returns aStateContextif any of the arguments holds one. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SingletonStateContextLookup()
DefaultStateContext instance.
public SingletonStateContextLookup(StateContextFactory contextFactory)
StateContextFactory
 to create the single instance.
contextFactory - the StateContextFactory to use to create 
        the singleton instance.| Method Detail | 
|---|
public StateContext lookup(Object[] eventArgs)
StateContextLookupEvent and returns a 
 StateContext if any of the arguments holds one. NOTE! This method
 must create a new StateContext if a compatible object is in
 the arguments and the next time that same object is passed to this
 method the same StateContext should be returned.
lookup in interface StateContextLookup| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||