| java.lang.Object org.apache.ojb.broker.util.factory.ConfigurableFactory
All known Subclasses: org.apache.ojb.broker.accesslayer.sql.SqlGeneratorFactory, org.apache.ojb.odmg.OJB, org.apache.ojb.broker.accesslayer.StatementsForClassFactory, org.apache.ojb.odmg.TxManagerFactory, org.apache.ojb.broker.accesslayer.JdbcAccessFactory, org.apache.ojb.broker.accesslayer.ConnectionManagerFactory, org.apache.ojb.broker.accesslayer.ConnectionFactoryFactory, org.apache.ojb.broker.accesslayer.StatementManagerFactory,
ConfigurableFactory | abstract public class ConfigurableFactory implements Configurable(Code) | | ConfigurableFactory is an abstract baseclass for OJB factory classes.
It provides all infrastructure for configuration through OJB.properties.
A derived class must implement the getConfigurationKey() method.
The returned configuration key is used to lookup the class to be instantiated
by the derived factory.
The lookup is performed in the configure() method and uses the OJB.properties
information.
author: Thomas Mahler |
Constructor Summary | |
public | ConfigurableFactory() the public constructor calls configure() to perform configuration
of the factory instance. |
ConfigurableFactory | public ConfigurableFactory()(Code) | | the public constructor calls configure() to perform configuration
of the factory instance.
|
createNewInstance | public Object createNewInstance(Class[] types, Object[] args)(Code) | | factory method for creating new instances
the Class to be instantiated is defined by getClassToServe().
Object the created instance |
createNewInstance | public Object createNewInstance()(Code) | | factory method for creating new instances
the Class to be instantiated is defined by getClassToServe().
Object the created instance |
createNewInstance | public Object createNewInstance(Class type, Object arg)(Code) | | factory method for creating new instances
the Class to be instantiated is defined by getClassToServe().
Object the created instance |
getClassToServe | public Class getClassToServe()(Code) | | Returns the classToServe.
Class |
getConfigurationKey | abstract protected String getConfigurationKey()(Code) | | must be implemented in the concrete factory classes.
the configuration key is used to lookup the Class to serve
from the OjbConfiguration in configure().
|
getLogger | protected Logger getLogger()(Code) | | the logger for the ConfigurableFactory
|
setClassToServe | public void setClassToServe(Class classToServe)(Code) | | Sets the classToServe.
Normally this is done by the factory using
ConfigurableFactory.getConfigurationKey .
Note: For internal use only!
Parameters: classToServe - The classToServe to set |
|
|