org.apache.openejb.core.singleton
Class SingletonInstanceManager

java.lang.Object
  extended by org.apache.openejb.core.singleton.SingletonInstanceManager

public class SingletonInstanceManager
extends Object


Constructor Summary
SingletonInstanceManager(SecurityService securityService)
           
 
Method Summary
 void deploy(BeanContext beanContext)
           
 void discardInstance(ThreadContext callContext, Object bean)
          This method has no work to do as all instances are removed from the pool on getInstance(...) and not returned via poolInstance(...) if they threw a system exception.
 void freeInstance(ThreadContext callContext)
           
 Instance getInstance(ThreadContext callContext)
           
protected  void start(BeanContext beanContext)
           
 void undeploy(BeanContext beanContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingletonInstanceManager

public SingletonInstanceManager(SecurityService securityService)
Method Detail

start

protected void start(BeanContext beanContext)
              throws OpenEJBException
Throws:
OpenEJBException

getInstance

public Instance getInstance(ThreadContext callContext)
                     throws OpenEJBException
Throws:
OpenEJBException

freeInstance

public void freeInstance(ThreadContext callContext)

discardInstance

public void discardInstance(ThreadContext callContext,
                            Object bean)
This method has no work to do as all instances are removed from the pool on getInstance(...) and not returned via poolInstance(...) if they threw a system exception.

Parameters:
callContext -
bean -

deploy

public void deploy(BeanContext beanContext)
            throws OpenEJBException
Throws:
OpenEJBException

undeploy

public void undeploy(BeanContext beanContext)


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.