More information

Class 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/ This file should be in your classpath.

Field Summary
protected  java.lang.String configFile
Constructor Summary
          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


protected java.lang.String configFile
Constructor Detail


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


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
getNewObject in class DefaultFactory

More information