org.jboss.jmx.examples.configuration
Class MBeanConfiguratorSupport

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by 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

Nested Class Summary
 class MBeanConfiguratorSupport.RegistrationNotificationFilter
           
 
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
MBeanConfiguratorSupport()
           
 
Method Summary
 String getName()
          Use the short class name as the default for the service name.
 ServiceBindingManager getServiceBindingManager()
           
 void handleNotification(Notification notification, Object handback)
          Callback method from the broadcaster MBean this listener implementation is registered to.
abstract  void mbeanRegistered(ObjectName objectName)
           
 void setServiceBindingManager(ServiceBindingManager serviceBindingManager)
           
 void startService()
           
 
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 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
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

MBeanConfiguratorSupport

public MBeanConfiguratorSupport()
Method Detail

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 object
handback - the handback object given to the broadcaster upon listener registration


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.