Class ObjectPoolFactory
java.lang.Object
de.uni_trier.wi2.procake.data.objectpool.ObjectPoolFactory
- All Implemented Interfaces:
Factory
The factory to create objectIds and object pools.
- Author:
- Rainer Maximini
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
bind
(ObjectPoolFactoryImplementation implementation) boolean
Bind an implementation to the factory.static String
static String
newObjectId
(String base, String offset) Creates a new objectId.static <T extends DataObject>
WriteableObjectPool<T>Creates a newWriteableObjectPool
.void
reset()
This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.static boolean
unbind
(ObjectPoolFactoryImplementation implementation) boolean
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 Details
-
DELIMETER
- See Also:
-
-
Method Details
-
bind
-
newObjectId
Creates a new objectId.- Parameters:
base
- the object id baseoffset
- the object id offset- Returns:
- the new objectId.
-
newObjectPool
Creates a newWriteableObjectPool
.- Returns:
- a new
WriteableObjectPool
-
getNewUniquePoolName
-
unbind
-
reset
public void reset()Description copied from interface:Factory
This 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
Description copied from interface:Factory
Bind an implementation to the factory. -
unbind
Description copied from interface:Factory
Unbinds an implementation from the factory.
-