Class 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>
    • Method Detail

      • 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<Groupwrap​(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