Package groovy.jmx.builder
Class JmxBuilderModelMBean
- java.lang.Object
- 
- javax.management.modelmbean.RequiredModelMBean
- 
- groovy.jmx.builder.JmxBuilderModelMBean
 
 
- 
- All Implemented Interfaces:
- EventListener,- DynamicMBean,- MBeanRegistration,- ModelMBean,- ModelMBeanNotificationBroadcaster,- NotificationBroadcaster,- NotificationEmitter,- NotificationListener,- PersistentMBean
 
 public class JmxBuilderModelMBean extends RequiredModelMBean implements NotificationListener The JmxBuilderModelMBean is the MBean class that proxies exported POGO/POJO inside the MBeanServer. When JmxBuilder exports an object instance, an instance of this class is created and exported inside the MBeanServer.
- 
- 
Constructor SummaryConstructors Constructor Description JmxBuilderModelMBean()JmxBuilderModelMBean(Object objectRef)JmxBuilderModelMBean(ModelMBeanInfo mbi)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventListeners(MBeanServer server, Map<String,Map<String,Object>> descriptor)Sets up event listeners for this MBean as described in the descriptor.voidaddOperationCallListeners(Map<String,Map<String,Map<String,Object>>> descriptor)Registers listeners for operation calls (i.e.voidhandleNotification(Notification note, Object handback)Objectinvoke(String opName, Object[] opArgs, String[] signature)voidsetManagedResource(Object obj)- 
Methods inherited from class javax.management.modelmbean.RequiredModelMBeanaddAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassLoaderRepository, getMBeanInfo, getNotificationInfo, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModelMBeanInfo, store
 
- 
 
- 
- 
- 
Constructor Detail- 
JmxBuilderModelMBeanpublic JmxBuilderModelMBean(Object objectRef) throws MBeanException, RuntimeOperationsException, InstanceNotFoundException, InvalidTargetObjectTypeException 
 - 
JmxBuilderModelMBeanpublic JmxBuilderModelMBean() throws MBeanException, RuntimeOperationsException
 - 
JmxBuilderModelMBeanpublic JmxBuilderModelMBean(ModelMBeanInfo mbi) throws MBeanException, RuntimeOperationsException 
 
- 
 - 
Method Detail- 
setManagedResourcepublic void setManagedResource(Object obj) 
 - 
addOperationCallListenerspublic void addOperationCallListeners(Map<String,Map<String,Map<String,Object>>> descriptor) Registers listeners for operation calls (i.e. method, getter, and setter calls) when invoked on this bean from the MBeanServer. Descriptor should contain a map with layoutitem -> [Map[methodListener:[target:"", tpe:"", callback:&Closure], ... ,]]- Parameters:
- descriptor- MetaMap descriptor containing description of operation call listeners
 
 - 
addEventListenerspublic void addEventListeners(MBeanServer server, Map<String,Map<String,Object>> descriptor) Sets up event listeners for this MBean as described in the descriptor. The descriptor contains a map with layout {item -> Map[event:"...", from:ObjectName, callback:&Closure],...,}- Parameters:
- server- the MBeanServer is to be registered.
- descriptor- a map containing info about the event
 
 - 
invokepublic Object invoke(String opName, Object[] opArgs, String[] signature) throws MBeanException, ReflectionException - Specified by:
- invokein interface- DynamicMBean
- Overrides:
- invokein class- RequiredModelMBean
- Throws:
- MBeanException
- ReflectionException
 
 - 
handleNotificationpublic void handleNotification(Notification note, Object handback) - Specified by:
- handleNotificationin interface- NotificationListener
 
 
- 
 
-