org.jboss.portal.server
Class AbstractObjectFactory
java.lang.Object
org.jboss.portal.server.AbstractObjectFactory
- All Implemented Interfaces:
- ObjectFactory
public class AbstractObjectFactory
- extends java.lang.Object
- implements ObjectFactory
A simple implementation that uses a map to know the
class objects used to instantiate objects.
Method Summary |
java.lang.Object |
create(MetaData metaData)
Create a new object instance for the given metadata. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected org.apache.log4j.Logger log
- The logger.
metaDataClassToObjectClass
protected java.util.Map metaDataClassToObjectClass
- .
AbstractObjectFactory
public AbstractObjectFactory(java.util.Properties props)
AbstractObjectFactory
public AbstractObjectFactory()
AbstractObjectFactory
public AbstractObjectFactory(java.lang.String resourceName)
create
public java.lang.Object create(MetaData metaData)
throws java.lang.Exception
- Description copied from interface:
ObjectFactory
- Create a new object instance for the given metadata.
- Specified by:
create
in interface ObjectFactory
- Throws:
java.lang.Exception