com.fruitioninc.jwc
Class DefaultStateManagerFactory

java.lang.Object
  |
  +--com.fruitioninc.jwc.DefaultStateManagerFactory
All Implemented Interfaces:
StateManagerFactory

public class DefaultStateManagerFactory
extends java.lang.Object
implements StateManagerFactory

Default implementation of the StateManagerFactory interface that maintains a one-to-one mapping of Class to StateManager.


Constructor Summary
DefaultStateManagerFactory()
           
 
Method Summary
 StateManager getStateManager(java.lang.Class clazz)
          Returns a StateManager object assigned to the given class.
 void setStateManager(java.lang.Class clazz, StateManager stateManager)
          Assigns a StateManager object to the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStateManagerFactory

public DefaultStateManagerFactory()
Method Detail

getStateManager

public StateManager getStateManager(java.lang.Class clazz)
Description copied from interface: StateManagerFactory
Returns a StateManager object assigned to the given class.

Specified by:
getStateManager in interface StateManagerFactory

setStateManager

public void setStateManager(java.lang.Class clazz,
                            StateManager stateManager)
Description copied from interface: StateManagerFactory
Assigns a StateManager object to the given class.

Specified by:
setStateManager in interface StateManagerFactory