Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » core » stateful » [javadoc | source]
org.apache.openejb.core.stateful
public class: StatefulInstanceManager [javadoc | source]
java.lang.Object
   org.apache.openejb.core.stateful.StatefulInstanceManager
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Nested Class Summary:
class  StatefulInstanceManager.BeanEntryQueue   
public static class  StatefulInstanceManager.Instance   
Field Summary
public static final  Logger logger     
protected final  long timeOut     
Constructor:
 public StatefulInstanceManager(TransactionManager transactionManager,
    SecurityService securityService,
    JtaEntityManagerRegistry jtaEntityManagerRegistry,
    Class passivatorClass,
    int timeout,
    int poolSize,
    int bulkPassivate) throws OpenEJBException 
Method from org.apache.openejb.core.stateful.StatefulInstanceManager Summary:
activate,   activateInstance,   deploy,   destroy,   freeInstance,   getBeanEntry,   getBeanIndex,   getBeanTransaction,   getEntityManagers,   getMethodIndex,   handleCallbackException,   handleTimeout,   markTxRollbackOnly,   newBeanEntry,   newInstance,   newInstance,   obtainInstance,   onFreeBeanEntry,   onPoolInstanceWithoutTransaction,   passivate,   passivate,   poolInstance,   setBeanTransaction,   setEntityManagers,   undeploy
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openejb.core.stateful.StatefulInstanceManager Detail:
 protected BeanEntry activate(Object primaryKey) throws SystemException 
 public Object activateInstance(ThreadContext callContext,
    BeanEntry entry) throws SystemException, ApplicationException 
 public  void deploy(CoreDeploymentInfo deploymentInfo,
    Index<Method, MethodType> index) throws OpenEJBException 
 protected InvalidateReferenceException destroy(ThreadContext callContext,
    BeanEntry entry,
    Exception t) throws SystemException 
 public Object freeInstance(ThreadContext threadContext) throws SystemException 
 protected BeanEntry getBeanEntry(ThreadContext callContext) throws OpenEJBException 
 protected Hashtable<Object, BeanEntry> getBeanIndex(ThreadContext threadContext) 
 public Transaction getBeanTransaction(ThreadContext callContext) throws OpenEJBException 
 public Map<EntityManagerFactory, EntityManager> getEntityManagers(ThreadContext callContext,
    Index<EntityManagerFactory, Map> factories) throws OpenEJBException 
 Index<Method, MethodType> getMethodIndex(CoreDeploymentInfo deploymentInfo) 
 protected  void handleCallbackException(Throwable e,
    Object instance,
    ThreadContext callContext,
    String callBack) throws ApplicationException, SystemException 
 protected  void handleTimeout(BeanEntry entry,
    ThreadContext threadContext) 
 protected  void markTxRollbackOnly(Transaction tx) throws SystemException 
 protected BeanEntry newBeanEntry(Object primaryKey,
    Object bean) 
 public Object newInstance(Object primaryKey,
    Class beanClass) throws OpenEJBException 
 protected Instance newInstance(Object primaryKey,
    Object bean,
    Map<String, Object> interceptorInstances) 
 public Object obtainInstance(Object primaryKey,
    ThreadContext callContext) throws OpenEJBException 
 protected  void onFreeBeanEntry(ThreadContext threadContext,
    BeanEntry entry) 
 protected  void onPoolInstanceWithoutTransaction(ThreadContext callContext,
    BeanEntry entry) 
 protected  void passivate() throws SystemException 
 public  void passivate(ThreadContext threadContext,
    BeanEntry currentEntry) 
 public  void poolInstance(ThreadContext callContext,
    Object bean) throws OpenEJBException 
 public  void setBeanTransaction(ThreadContext callContext,
    Transaction beanTransaction) throws OpenEJBException 
 public  void setEntityManagers(ThreadContext callContext,
    Index<EntityManagerFactory, EntityManager> entityManagers) throws OpenEJBException 
 public  void undeploy(CoreDeploymentInfo deploymentInfo) throws OpenEJBException