More information


de.spieleck.pcs.action
Class ActionFactory

java.lang.Object
  |
  +--de.spieleck.pcs.factory.DefaultFactory
        |
        +--de.spieleck.pcs.action.ActionFactory
All Implemented Interfaces:
ConfigUser, Factory

public class ActionFactory
extends DefaultFactory

This object acts as a factory for Actions. It is configurable via the properties file. It wraps a DefaultFactory within a member. /conf/action.properties. This file should be in your classpath.


Field Summary
protected  java.lang.String configFile
           
 
Constructor Summary
ActionFactory()
          default constructor for ActionFactory
 
Method Summary
 java.lang.Object getNewObject(java.lang.String key)
          factory method for creating objects.
 
Methods inherited from class de.spieleck.pcs.factory.DefaultFactory
getConfigFile, getProperties, resetConfig, setConfigFile, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configFile

protected java.lang.String configFile
Constructor Detail

ActionFactory

public ActionFactory()
              throws ActionException
default constructor for ActionFactory
Method Detail

getNewObject

public java.lang.Object getNewObject(java.lang.String key)
                              throws FactoryException
factory method for creating objects. The class of the Objects is look upped in the configuration file.
Throws an Exception if the constructed object is not an Action
Overrides:
getNewObject in class DefaultFactory

More information