Nuxeo Enterprise Platform 5.1

org.nuxeo.runtime.jboss.adapter
Class ComponentMBean

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.system.ServiceDynamicMBeanSupport
              extended by org.nuxeo.runtime.jboss.adapter.ComponentMBean
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, NotificationBroadcaster, NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class ComponentMBean
extends org.jboss.system.ServiceDynamicMBeanSupport

Author:
Bogdan Stefanescu

Field Summary
 
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
 
Constructor Summary
ComponentMBean(String name)
           
 
Method Summary
protected  Object getInternalAttribute(String attribute)
           
 MBeanInfo getMBeanInfo()
           
static String getMBeanXMLContent(ComponentName name)
           
static String getMBeanXMLContent(String name)
          Loads the template file for the jboss service and generates the service xml definition for the given service name.
static ObjectName getObjectName(ComponentInstance service)
           
protected  Object internalInvoke(String actionName, Object[] params, String[] signature)
           
protected  void setInternalAttribute(Attribute attribute)
           
 
Methods inherited from class org.jboss.system.ServiceDynamicMBeanSupport
getAttribute, getAttributes, getInternalAttributeInfo, getInternalConstructorInfo, getInternalDescription, getInternalNotificationInfo, getInternalOperationInfo, invoke, setAttribute, setAttributes
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, 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
 

Constructor Detail

ComponentMBean

public ComponentMBean(String name)
               throws IntrospectionException
Throws:
IntrospectionException
Method Detail

getInternalAttribute

protected Object getInternalAttribute(String attribute)
                               throws AttributeNotFoundException,
                                      MBeanException,
                                      ReflectionException
Overrides:
getInternalAttribute in class org.jboss.system.ServiceDynamicMBeanSupport
Throws:
AttributeNotFoundException
MBeanException
ReflectionException

getMBeanInfo

public MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface DynamicMBean
Overrides:
getMBeanInfo in class org.jboss.system.ServiceDynamicMBeanSupport

internalInvoke

protected Object internalInvoke(String actionName,
                                Object[] params,
                                String[] signature)
                         throws MBeanException,
                                ReflectionException
Overrides:
internalInvoke in class org.jboss.system.ServiceDynamicMBeanSupport
Throws:
MBeanException
ReflectionException

setInternalAttribute

protected void setInternalAttribute(Attribute attribute)
                             throws AttributeNotFoundException,
                                    InvalidAttributeValueException,
                                    MBeanException,
                                    ReflectionException
Overrides:
setInternalAttribute in class org.jboss.system.ServiceDynamicMBeanSupport
Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

getMBeanXMLContent

public static String getMBeanXMLContent(String name)
Loads the template file for the jboss service and generates the service xml definition for the given service name.

Parameters:
name - the service name
Returns:
the service xml definition

getObjectName

public static ObjectName getObjectName(ComponentInstance service)
                                throws MalformedObjectNameException
Throws:
MalformedObjectNameException

getMBeanXMLContent

public static String getMBeanXMLContent(ComponentName name)

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.