org.ow2.jonas.ejb.easybeans
Class EasyBeansService

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
          extended by org.objectweb.jonas.service.AbsServiceImpl
              extended by org.ow2.jonas.ejb.easybeans.EasyBeansService
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter, Service

public class EasyBeansService
extends AbsServiceImpl

Implementation of the service that runs the EasyBeans EJB3 container.

Author:
Florent Benoit

Field Summary
static String EASYBEANS_CONFIG_FILE
          Name of the configuration file of EasyBeans for JOnAS.
 
Fields inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
EasyBeansService()
           
 
Method Summary
protected  void doInit(Context ctx)
          Abstract initialization method to be implemented by sub-classes.
protected  void doStart()
          Abstract start-up method to be implemented by sub-classes.
protected  void doStop()
          Abstract method for service stopping to be implemented by sub-classes.
 org.ow2.easybeans.api.EZBServer getEasyBeansServer()
          TODO: Remove it when EarDeployer will use EasyBeans Deployer.
 
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop
 
Methods inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
initLogger, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EASYBEANS_CONFIG_FILE

public static final String EASYBEANS_CONFIG_FILE
Name of the configuration file of EasyBeans for JOnAS.

See Also:
Constant Field Values
Constructor Detail

EasyBeansService

public EasyBeansService()
Method Detail

doInit

protected void doInit(Context ctx)
               throws ServiceException
Abstract initialization method to be implemented by sub-classes.

Specified by:
doInit in class AbsServiceImpl
Parameters:
ctx - configuration of the service
Throws:
ServiceException - service initialization failed

doStart

protected void doStart()
                throws ServiceException
Abstract start-up method to be implemented by sub-classes.

Specified by:
doStart in class AbsServiceImpl
Throws:
ServiceException - service start-up failed

doStop

protected void doStop()
               throws ServiceException
Abstract method for service stopping to be implemented by sub-classes.

Specified by:
doStop in class AbsServiceImpl
Throws:
ServiceException - service stopping failed

getEasyBeansServer

public org.ow2.easybeans.api.EZBServer getEasyBeansServer()
TODO: Remove it when EarDeployer will use EasyBeans Deployer.

Returns:
the Embedded instance used by this service.


Copyright © 2007 OW2 Consortium. All Rights Reserved.