org.jboss.ejb.plugins
Class EntityInstancePool
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.ejb.plugins.AbstractInstancePool
org.jboss.ejb.plugins.EntityInstancePool
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, AllowedOperationsFlags, ContainerPlugin, InstancePool, AbstractInstancePoolMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, XmlLoadable, Service, ServiceMBean
public class EntityInstancePool
- extends AbstractInstancePool
An entity bean instance pool.
- Version:
- $Revision: 81030 $
- Author:
- Rickard Oberg, Marc Fleury, Andreas Schaefer, Sacha Labourey
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags |
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED |
Methods inherited from class org.jboss.ejb.plugins.AbstractInstancePool |
clear, createService, destroyService, discard, get, getAvailableCount, getContainer, getCurrentSize, getMaxSize, importXml, setContainer |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, startService, stop, stopService, unsetKernelControllerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityInstancePool
public EntityInstancePool()
free
public void free(EnterpriseContext ctx)
- Return an instance to the free pool. Reset state
Called in 3 cases:
- Done with finder method
- Removed
- Passivated
- Specified by:
free
in interface InstancePool
- Overrides:
free
in class AbstractInstancePool
- Parameters:
ctx
-
create
protected EnterpriseContext create(Object instance)
throws Exception
- Specified by:
create
in class AbstractInstancePool
- Throws:
Exception
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.