org.openejb.slsb
Class StatelessInstanceFactory

java.lang.Object
  extended byorg.openejb.slsb.StatelessInstanceFactory
All Implemented Interfaces:
InstanceFactory, Serializable

public class StatelessInstanceFactory
extends Object
implements InstanceFactory, Serializable

Version:
$Revision: 1.3 $ $Date: 2004/07/07 22:17:35 $
See Also:
Serialized Form

Constructor Summary
StatelessInstanceFactory(org.apache.geronimo.naming.java.ReadOnlyContext componentContext, StatelessInstanceContextFactory factory, Class beanClass)
           
 
Method Summary
 Object createInstance()
          Create an instance ready for insertion into the pool.
 void destroyInstance(Object instance)
          Destroy an instance that the pool decided was not needed any longer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatelessInstanceFactory

public StatelessInstanceFactory(org.apache.geronimo.naming.java.ReadOnlyContext componentContext,
                                StatelessInstanceContextFactory factory,
                                Class beanClass)
Method Detail

createInstance

public Object createInstance()
                      throws Exception
Description copied from interface: InstanceFactory
Create an instance ready for insertion into the pool. This method should have performed any initialization needed by the object's lifecycle

Specified by:
createInstance in interface InstanceFactory
Returns:
an instance ready to be used
Throws:
Exception - if there was a problem initializing the instance

destroyInstance

public void destroyInstance(Object instance)
Description copied from interface: InstanceFactory
Destroy an instance that the pool decided was not needed any longer. This method should perform any shutdown needed by the lifecycle

Specified by:
destroyInstance in interface InstanceFactory
Parameters:
instance - the instance to destroy


Copyright © 1999-2005 OpenEJB. All Rights Reserved.