Class ObjectPoolFactory

java.lang.Object
de.uni_trier.wi2.procake.data.objectpool.ObjectPoolFactory
All Implemented Interfaces:
Factory

public class ObjectPoolFactory extends Object implements Factory
The factory to create objectIds and object pools.
Author:
Rainer Maximini
  • Field Details

  • Method Details

    • 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 base
      offset - the object id offset
      Returns:
      the new objectId.
    • newObjectPool

      public static <T extends DataObject> WriteableObjectPool<T> newObjectPool()
      Creates a new WriteableObjectPool.
      Returns:
      a new WriteableObjectPool
    • getNewUniquePoolName

      public static String getNewUniquePoolName()
    • unbind

      public static boolean unbind(ObjectPoolFactoryImplementation implementation)
    • 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.
      Specified by:
      reset in interface Factory
    • bind

      public boolean bind(Object implementation)
      Description copied from interface: Factory
      Bind an implementation to the factory.
      Specified by:
      bind in interface Factory
      Parameters:
      implementation - The object to bind.
      Returns:
      true if the factory accept the implementation, otherwise false .
      See Also:
    • unbind

      public boolean unbind(Object implementation)
      Description copied from interface: Factory
      Unbinds an implementation from the factory.
      Specified by:
      unbind in interface Factory
      Parameters:
      implementation - The object to unbind.
      Returns:
      true if the factory accept the implementation, otherwise false .
      See Also: