Class RepositoryService.SessionFactory

java.lang.Object
org.apache.commons.pool2.BaseObject
org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,Session>
org.nuxeo.ecm.core.repository.RepositoryService.SessionFactory
All Implemented Interfaces:
org.apache.commons.pool2.KeyedPooledObjectFactory<String,Session>
Enclosing class:
RepositoryService

protected class RepositoryService.SessionFactory extends org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,Session>
Since:
11.1
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String repositoryName)
     
    void
    destroyObject(String repositoryName, org.apache.commons.pool2.PooledObject<Session> p)
     
    org.apache.commons.pool2.PooledObject<Session>
    wrap(Session session)
     

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

    activateObject, makeObject, passivateObject, 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

    • SessionFactory

      protected SessionFactory()
  • Method Details

    • create

      public Session create(String repositoryName) throws Exception
      Specified by:
      create in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,Session>
      Throws:
      Exception
    • wrap

      public org.apache.commons.pool2.PooledObject<Session> wrap(Session session)
      Specified by:
      wrap in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,Session>
    • destroyObject

      public void destroyObject(String repositoryName, org.apache.commons.pool2.PooledObject<Session> p) throws Exception
      Specified by:
      destroyObject in interface org.apache.commons.pool2.KeyedPooledObjectFactory<String,Session>
      Overrides:
      destroyObject in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,Session>
      Throws:
      Exception