More information


de.spieleck.pcs.factory
Interface Factory

All Superinterfaces:
ConfigUser
All Known Implementing Classes:
DefaultFactory

public interface Factory
extends ConfigUser

This interface describes the methods of a Factory which is configurable via a config file


Method Summary
 java.lang.String getConfigFile()
          Getter for property configFile.
 java.lang.Object getNewObject(java.lang.String key)
          factory method for creating objects.
 java.util.Properties getProperties()
          Getter for property properties.
 void setConfigFile(java.lang.String configFile)
          Setter for property configFile.
 void setProperties(java.util.Properties properties)
          Setter for property properties.
 
Methods inherited from interface de.spieleck.pcs.conf.ConfigUser
resetConfig
 

Method Detail

getNewObject

public java.lang.Object getNewObject(java.lang.String key)
                              throws FactoryException,
                                     NoSuchKeyException
factory method for creating objects. The class of the Objects is look upped in the configuration file.

getConfigFile

public java.lang.String getConfigFile()
Getter for property configFile.
Returns:
Value of property configFile.

setConfigFile

public void setConfigFile(java.lang.String configFile)
                   throws java.lang.IllegalArgumentException,
                          java.io.FileNotFoundException
Setter for property configFile.
Parameters:
configFile - New value of property configFile.

getProperties

public java.util.Properties getProperties()
Getter for property properties.
Returns:
Value of property properties.

setProperties

public void setProperties(java.util.Properties properties)
Setter for property properties.
Parameters:
properties - New value of property properties.

More information