Nuxeo Enterprise Platform 5.1

org.nuxeo.runtime.jboss.adapter
Class ComponentAdapter

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.nuxeo.runtime.jboss.adapter.ComponentAdapter
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, ComponentListener, ComponentAdapterMBean, RuntimeServiceListener

public class ComponentAdapter
extends org.jboss.system.ServiceMBeanSupport
implements ComponentAdapterMBean, RuntimeServiceListener, ComponentListener

Adapts NXRuntime components to JBoss MBeans.

Should be started before the NXRuntime bundle is deployed.

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
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
 
Constructor Summary
ComponentAdapter()
           
 
Method Summary
protected  void createService()
           
protected static void deployComponent(RegistrationInfo ri)
           
protected  void destroyService()
           
 void handleEvent(ComponentEvent event)
           
 void handleEvent(RuntimeServiceEvent event)
           
protected static void undeployComponent(RegistrationInfo ri)
           
 
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, startService, stop, stopService
 
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
 

Constructor Detail

ComponentAdapter

public ComponentAdapter()
Method Detail

createService

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

destroyService

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

handleEvent

public void handleEvent(ComponentEvent event)
Specified by:
handleEvent in interface ComponentListener

deployComponent

protected static void deployComponent(RegistrationInfo ri)
                               throws org.jboss.mx.util.MBeanProxyCreationException,
                                      MalformedObjectNameException
Throws:
org.jboss.mx.util.MBeanProxyCreationException
MalformedObjectNameException

undeployComponent

protected static void undeployComponent(RegistrationInfo ri)
                                 throws org.jboss.mx.util.MBeanProxyCreationException,
                                        MalformedObjectNameException
Throws:
org.jboss.mx.util.MBeanProxyCreationException
MalformedObjectNameException

handleEvent

public void handleEvent(RuntimeServiceEvent event)
Specified by:
handleEvent in interface RuntimeServiceListener

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.