Package com.sun.ejb.containers.util.pool
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
create(Object param)
Create an object.void
destroy(Object object)
Destroy an object.
-
-
-
Method Detail
-
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.
-
-