Interface ObjectFactory

All Known Implementing Classes:
AbstractSingletonContainer.SingletonContextFactory, StatelessSessionContainer.SessionContextFactory

public interface ObjectFactory
An object factory that 'knows' how to create / destroy objects
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Object param)
    Create an object.
    void
    destroy(Object object)
    Destroy an object.
  • Method Details

    • create

      Object create(Object param) throws PoolException
      Create an object. Called from Pool.getObject(param)
      Throws:
      PoolException
    • destroy

      void destroy(Object object)
      Destroy an object. Called from Pool.destroyObject.