org.jboss.portal.server
Class AbstractObjectFactory

java.lang.Object
  extended by 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.


Field Summary
protected  org.apache.log4j.Logger log
          The logger.
protected  java.util.Map metaDataClassToObjectClass
          .
 
Constructor Summary
AbstractObjectFactory()
           
AbstractObjectFactory(java.util.Properties props)
           
AbstractObjectFactory(java.lang.String resourceName)
           
 
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
 

Field Detail

log

protected org.apache.log4j.Logger log
The logger.


metaDataClassToObjectClass

protected java.util.Map metaDataClassToObjectClass
.

Constructor Detail

AbstractObjectFactory

public AbstractObjectFactory(java.util.Properties props)

AbstractObjectFactory

public AbstractObjectFactory()

AbstractObjectFactory

public AbstractObjectFactory(java.lang.String resourceName)
Method Detail

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