repast.simphony.scenario
Class DefaultActionLoader<T extends ControllerAction>

java.lang.Object
  extended by repast.simphony.scenario.AbstractActionLoader
      extended by repast.simphony.scenario.ObjectActionLoader<T>
          extended by repast.simphony.scenario.DefaultActionLoader<T>
All Implemented Interfaces:
ActionLoader

public class DefaultActionLoader<T extends ControllerAction>
extends ObjectActionLoader<T>


Field Summary
 
Fields inherited from class repast.simphony.scenario.ObjectActionLoader
actionRoot, dataClass
 
Fields inherited from class repast.simphony.scenario.AbstractActionLoader
contextID, file
 
Constructor Summary
DefaultActionLoader(File file, Object contextID, Class<T> actionClass, String actionRoot)
           
 
Method Summary
protected  ControllerAction createAction(T data)
           
protected  ClassLoader getClassLoader()
           
protected  void prepare(com.thoughtworks.xstream.XStream xstream)
          Override this method if you need to prepare the XStream before using it.
 
Methods inherited from class repast.simphony.scenario.ObjectActionLoader
performLoad
 
Methods inherited from class repast.simphony.scenario.AbstractActionLoader
loadAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultActionLoader

public DefaultActionLoader(File file,
                           Object contextID,
                           Class<T> actionClass,
                           String actionRoot)
Method Detail

prepare

protected void prepare(com.thoughtworks.xstream.XStream xstream)
Override this method if you need to prepare the XStream before using it.

Overrides:
prepare in class ObjectActionLoader<T extends ControllerAction>
Parameters:
xstream - the XStream that will be used for reading in the descriptor

createAction

protected ControllerAction createAction(T data)
Specified by:
createAction in class ObjectActionLoader<T extends ControllerAction>

getClassLoader

protected ClassLoader getClassLoader()
Specified by:
getClassLoader in class ObjectActionLoader<T extends ControllerAction>