More information


de.spieleck.pcs.xml
Class XmlProducerFactory

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

public class XmlProducerFactory
extends DefaultFactory

This class extends a DefaultFactory. It knows that it wants to use the config file at /conf/xmlproducer.properties and creates XmlProducers only


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

XmlProducerFactory

public XmlProducerFactory()
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 XmlProducer
Overrides:
getNewObject in class DefaultFactory

More information