org.jboss.jmx.examples.configuration
Class MBeanConfiguratorSupport
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.jmx.examples.configuration.MBeanConfiguratorSupport
- All Implemented Interfaces:
- EventListener, MBeanRegistration, NotificationBroadcaster, NotificationEmitter, NotificationListener, MBeanConfiguratorSupportMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean
- Direct Known Subclasses:
- SampleMBeanConfigurator
public abstract class MBeanConfiguratorSupport
- extends ServiceMBeanSupport
- implements MBeanConfiguratorSupportMBean, NotificationListener
- Author:
- Tom Elrod, Brian Stansberry
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 |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, stopService, unsetKernelControllerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBeanConfiguratorSupport
public MBeanConfiguratorSupport()
getName
public String getName()
- Use the short class name as the default for the service name.
- Specified by:
getName
in interface ServiceMBean
- Overrides:
getName
in class ServiceMBeanSupport
startService
public void startService()
- Overrides:
startService
in class ServiceMBeanSupport
getServiceBindingManager
public ServiceBindingManager getServiceBindingManager()
- Specified by:
getServiceBindingManager
in interface MBeanConfiguratorSupportMBean
setServiceBindingManager
public void setServiceBindingManager(ServiceBindingManager serviceBindingManager)
- Specified by:
setServiceBindingManager
in interface MBeanConfiguratorSupportMBean
mbeanRegistered
public abstract void mbeanRegistered(ObjectName objectName)
throws Exception
- Throws:
Exception
handleNotification
public void handleNotification(Notification notification,
Object handback)
- Callback method from the broadcaster MBean this listener implementation
is registered to.
- Specified by:
handleNotification
in interface NotificationListener
- Parameters:
notification
- the notification objecthandback
- the handback object given to the broadcaster
upon listener registration
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.