Arch4J 1.1

org.arch4j.clientcontroller
Class ClientStateProvider

java.lang.Object
  |
  +--org.arch4j.clientcontroller.ClientStateProvider

public class ClientStateProvider
extends Object

Provides runtime access to the client state model.

Version:
1.0
Author:
David Colwell

Field Summary
protected  String CLIENT_STATE_DOMAIN
          The property file name.
protected  String ROOT_TRANSITION_CLASS_PROPERTY
          The root transition class property name.
 
Constructor Summary
protected ClientStateProvider()
          This is made protected so the only way to access this class is through the getProvider method.
 
Method Summary
protected  Object createInstance(String classname)
          Create an instance from the classname.
static ClientStateProvider getProvider()
          Returns the singleton instance of this class.
protected  Transition getRootTransition()
          Get the root transition class name implementation to use from the property setting.
 StateMachine getStateMachine()
          Returns a reference to a new root StateMachine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_STATE_DOMAIN

protected final String CLIENT_STATE_DOMAIN
The property file name.

See Also:
Constant Field Values

ROOT_TRANSITION_CLASS_PROPERTY

protected final String ROOT_TRANSITION_CLASS_PROPERTY
The root transition class property name.

See Also:
Constant Field Values
Constructor Detail

ClientStateProvider

protected ClientStateProvider()
This is made protected so the only way to access this class is through the getProvider method.

Method Detail

getProvider

public static ClientStateProvider getProvider()
Returns the singleton instance of this class.


getStateMachine

public StateMachine getStateMachine()
Returns a reference to a new root StateMachine.


getRootTransition

protected Transition getRootTransition()
Get the root transition class name implementation to use from the property setting. Instantiate the transition and return.

Throws:
EnvironmentalException - if unable to retrieve the classname property or associate a Class object with the classname.

createInstance

protected Object createInstance(String classname)
Create an instance from the classname.

Throws:
EnvironmentalException - if fails to create a new instance of the specified classname. Note that we do not throw a StateMachineException here as no state machine yet exists to catch and handle this.

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.