org.jbpm.configuration
Class ObjectFactoryImpl

java.lang.Object
  extended by org.jbpm.configuration.ObjectFactoryImpl
All Implemented Interfaces:
Serializable, ObjectFactory

public class ObjectFactoryImpl
extends Object
implements ObjectFactory

See Also:
Serialized Form

Constructor Summary
ObjectFactoryImpl()
           
ObjectFactoryImpl(Map namedObjectInfos, List objectInfos)
          Deprecated. creating objects by index is no longer supported
 
Method Summary
 void addObjectInfo(ObjectInfo objectInfo)
           
 Object createObject(int index)
          Deprecated. creating objects by index is no longer supported
 Object createObject(ObjectInfo objectInfo)
          create a new object for the given ObjectInfo.
 Object createObject(String name)
          create a new object of the given name.
 boolean hasObject(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectFactoryImpl

public ObjectFactoryImpl()

ObjectFactoryImpl

public ObjectFactoryImpl(Map namedObjectInfos,
                         List objectInfos)
Deprecated. creating objects by index is no longer supported

Method Detail

addObjectInfo

public void addObjectInfo(ObjectInfo objectInfo)

createObject

public Object createObject(String name)
create a new object of the given name. Before creation starts, non-singleton objects will be cleared from the registry. Singletons will remain.

Specified by:
createObject in interface ObjectFactory

hasObject

public boolean hasObject(String name)
Specified by:
hasObject in interface ObjectFactory

createObject

public Object createObject(int index)
Deprecated. creating objects by index is no longer supported

create a new object for the given index. Before creation starts, non-singleton objects will be cleared from the registry. Singletons will remain.


createObject

public Object createObject(ObjectInfo objectInfo)
create a new object for the given ObjectInfo. Before creation starts, non-singleton objects will be cleared from the registry. Singletons will remain.



Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.