Class ObjectPoolFactory
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.objectpool.ObjectPoolFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanbind(ObjectPoolFactoryImplementation implementation)booleanbind(Object implementation)Bind an implementation to the factory.static StringgetNewUniquePoolName()static StringnewObjectId(String base, String offset)Creates a new objectId.static <T extends DataObject>
WriteableObjectPool<T>newObjectPool()Creates a newWriteableObjectPool.voidreset()This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.static booleanunbind(ObjectPoolFactoryImplementation implementation)booleanunbind(Object implementation)Unbinds an implementation from the factory.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.utils.composition.Factory
addParameter, postInit
-
-
-
-
Field Detail
-
DELIMETER
protected static final String DELIMETER
- See Also:
- Constant Field Values
-
-
Method Detail
-
bind
public static boolean bind(ObjectPoolFactoryImplementation implementation)
-
newObjectId
public static String newObjectId(String base, String offset)
Creates a new objectId.- Parameters:
base- the object id baseoffset- the object id offset- Returns:
- the new objectId.
-
newObjectPool
public static <T extends DataObject> WriteableObjectPool<T> newObjectPool()
Creates a newWriteableObjectPool.- Returns:
- a new
WriteableObjectPool
-
getNewUniquePoolName
public static String getNewUniquePoolName()
-
unbind
public static boolean unbind(ObjectPoolFactoryImplementation implementation)
-
reset
public void reset()
Description copied from interface:FactoryThis method has to be implemented by every factory in order to allow a proper restart of ProCAKE. For example, this method might reset the default factory object or other stateful variables.
-
bind
public boolean bind(Object implementation)
Description copied from interface:FactoryBind an implementation to the factory.- Specified by:
bindin interfaceFactory- Parameters:
implementation- The object to bind.- Returns:
trueif the factory accept the implementation, otherwisefalse.- See Also:
Factory.bind(java.lang.Object)
-
unbind
public boolean unbind(Object implementation)
Description copied from interface:FactoryUnbinds an implementation from the factory.- Specified by:
unbindin interfaceFactory- Parameters:
implementation- The object to unbind.- Returns:
trueif the factory accept the implementation, otherwisefalse.- See Also:
Factory.unbind(java.lang.Object)
-
-