org.jboss.ejb3.stateful
Class StatefulManager

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.ejb3.stateful.StatefulManager
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Container, EjbManagerMBean, StatefulManagerMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class StatefulManager
extends org.jboss.system.ServiceMBeanSupport
implements StatefulManagerMBean, Container

Comment

Version:
$Revision: 1.12.2.4 $
Author:
Bill Burke

Field Summary
protected  StatefulContainer container
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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.ejb3.Container
ENC_CTX_NAME
 
Constructor Summary
StatefulManager(StatefulContainer container, String jaccContextId)
           
 
Method Summary
 Object construct()
           
 void createService()
           
 void destroyService()
           
 Class getBeanClass()
           
 EjbLinkResolver getEjbLinkResolver()
           
 String getEjbName()
           
 Context getEnc()
           
 InitialContext getInitialContext()
           
 Hashtable getInitialContextProperties()
           
 Container getInstance()
           
 ManagedEntityManagerFactory getManagedEntityManagerFactory()
           
 javax.management.ObjectName getObjectName()
           
 Pool getPool()
           
 StatefulContainer getStatefulContainer()
           
 javax.ejb.TimerService getTimerService()
           
 void invokeInit(Object bean)
           
 void invokeInit(Object bean, Class[] initParameterTypes, Object[] initParameterValues)
           
 void invokePostActivate(Object bean)
           
 void invokePostConstruct(Object bean)
           
 void invokePreDestroy(Object bean)
           
 void invokePrePassivate(Object bean)
           
 void setEjbLinkResolver(EjbLinkResolver ejbLinkResolver)
           
 void setManagedEntityManagerFactory(ManagedEntityManagerFactory factory)
           
 void startService()
           
 void stopService()
           
 
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, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 
Methods inherited from interface org.jboss.ejb3.Container
create, destroy, start, stop
 

Field Detail

container

protected StatefulContainer container
Constructor Detail

StatefulManager

public StatefulManager(StatefulContainer container,
                       String jaccContextId)
Method Detail

getInitialContext

public InitialContext getInitialContext()
Specified by:
getInitialContext in interface Container

getInitialContextProperties

public Hashtable getInitialContextProperties()
Specified by:
getInitialContextProperties in interface Container

getEnc

public Context getEnc()
Specified by:
getEnc in interface Container

getInstance

public Container getInstance()
Specified by:
getInstance in interface EjbManagerMBean

getEjbLinkResolver

public EjbLinkResolver getEjbLinkResolver()
Specified by:
getEjbLinkResolver in interface Container

setEjbLinkResolver

public void setEjbLinkResolver(EjbLinkResolver ejbLinkResolver)
Specified by:
setEjbLinkResolver in interface Container

getManagedEntityManagerFactory

public ManagedEntityManagerFactory getManagedEntityManagerFactory()
Specified by:
getManagedEntityManagerFactory in interface Container

setManagedEntityManagerFactory

public void setManagedEntityManagerFactory(ManagedEntityManagerFactory factory)
Specified by:
setManagedEntityManagerFactory in interface Container

getStatefulContainer

public StatefulContainer getStatefulContainer()

createService

public void createService()
                   throws Exception
Overrides:
createService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

startService

public void startService()
                  throws Exception
Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

stopService

public void stopService()
                 throws Exception
Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

destroyService

public void destroyService()
                    throws Exception
Overrides:
destroyService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

getBeanClass

public Class getBeanClass()
Specified by:
getBeanClass in interface Container

getEjbName

public String getEjbName()
Specified by:
getEjbName in interface Container

getObjectName

public javax.management.ObjectName getObjectName()
Specified by:
getObjectName in interface Container

getTimerService

public javax.ejb.TimerService getTimerService()
Specified by:
getTimerService in interface Container

getPool

public Pool getPool()
Specified by:
getPool in interface Container

construct

public Object construct()
Specified by:
construct in interface Container

invokePostConstruct

public void invokePostConstruct(Object bean)
Specified by:
invokePostConstruct in interface Container

invokePreDestroy

public void invokePreDestroy(Object bean)
Specified by:
invokePreDestroy in interface Container

invokePostActivate

public void invokePostActivate(Object bean)
Specified by:
invokePostActivate in interface Container

invokePrePassivate

public void invokePrePassivate(Object bean)
Specified by:
invokePrePassivate in interface Container

invokeInit

public void invokeInit(Object bean)
Specified by:
invokeInit in interface Container

invokeInit

public void invokeInit(Object bean,
                       Class[] initParameterTypes,
                       Object[] initParameterValues)
Specified by:
invokeInit in interface Container


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.