my.avalon.jmx
Class MBeanableHandler

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended bymy.avalon.jmx.MBeanableHandler
All Implemented Interfaces:
org.apache.avalon.lifecycle.Creator, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable

public class MBeanableHandler
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.avalon.lifecycle.Creator, org.apache.avalon.framework.service.Serviceable

(Un)Register object to the "jmx-server" service. The domaine is "Application" and the name to used to identified object is:

To be auto-registered a MBean component need to include the stage "my.avalon.jmx.MBeanable". The implementation of the interface my.avalon.jmx.MBeanable is optional (only if you want to choose your name).


Constructor Summary
MBeanableHandler()
           
 
Method Summary
 void create(java.lang.Object object, org.apache.avalon.framework.context.Context context)
          Register object to "jmx-server" service.
 void destroy(java.lang.Object object, org.apache.avalon.framework.context.Context context)
          Unregister object form "jmx-server" service.
 void service(org.apache.avalon.framework.service.ServiceManager manager)
          Servicing of the component by the container during which service dependencies declared under the component can be resolved using the supplied service manager.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanableHandler

public MBeanableHandler()
Method Detail

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Servicing of the component by the container during which service dependencies declared under the component can be resolved using the supplied service manager.

Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Parameters:
manager - the service manager
Throws:
org.apache.avalon.framework.service.ServiceException

create

public void create(java.lang.Object object,
                   org.apache.avalon.framework.context.Context context)
            throws java.lang.Exception
Register object to "jmx-server" service.

Specified by:
create in interface org.apache.avalon.lifecycle.Creator
Throws:
java.lang.Exception

destroy

public void destroy(java.lang.Object object,
                    org.apache.avalon.framework.context.Context context)
Unregister object form "jmx-server" service.

Specified by:
destroy in interface org.apache.avalon.lifecycle.Creator


Copyright © 2003-2004 . All Rights Reserved.