Class Group.GroupFactory

java.lang.Object
org.apache.commons.pool2.BaseObject
org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,Group>
org.apache.fulcrum.intake.model.Group.GroupFactory
All Implemented Interfaces:
org.apache.commons.pool2.KeyedPooledObjectFactory<String,Group>
Enclosing class:
Group

public static class Group.GroupFactory extends org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,Group>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an instance that can be returned by the pool.
    void
    passivateObject(String key, org.apache.commons.pool2.PooledObject<Group> pooledGroup)
    Uninitialize an instance to be returned to the pool.
    org.apache.commons.pool2.PooledObject<Group>
    wrap(Group group)
     

    Methods inherited from class org.apache.commons.pool2.BaseKeyedPooledObjectFactory

    activateObject, destroyObject, makeObject, validateObject

    Methods inherited from class org.apache.commons.pool2.BaseObject

    toString, toStringAppendFields

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.commons.pool2.KeyedPooledObjectFactory

    destroyObject
  • Constructor Details

    • GroupFactory

      public GroupFactory(AppData appData)
  • Method Details

    • create

      public Group create(String key) throws IntakeException
      Creates an instance that can be returned by the pool.
      Specified by:
      create in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,Group>
      Parameters:
      key - the name of the group
      Returns:
      an instance that can be returned by the pool.
      Throws:
      IntakeException - indicates that the group could not be retrieved
    • wrap

      public org.apache.commons.pool2.PooledObject<Group> wrap(Group group)
      Specified by:
      wrap in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,Group>
      See Also:
      • BaseKeyedPooledObjectFactory.wrap(java.lang.Object)
    • passivateObject

      public void passivateObject(String key, org.apache.commons.pool2.PooledObject<Group> pooledGroup)
      Uninitialize an instance to be returned to the pool.
      Specified by:
      passivateObject in interface org.apache.commons.pool2.KeyedPooledObjectFactory<String,Group>
      Overrides:
      passivateObject in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,Group>
      Parameters:
      key - the name of the group
      pooledGroup - the instance to be passivated