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 and description |
|---|
JmxBuilderModelMBean(Object objectRef)Creates a model MBean for the supplied managed resource. |
JmxBuilderModelMBean()Creates an empty model MBean. |
JmxBuilderModelMBean(ModelMBeanInfo mbi)Creates a model MBean backed by the supplied metadata. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addEventListeners(MBeanServer server, Map<String, Map<String, Object>> descriptor)Sets up event listeners for this MBean as described in the descriptor. |
|
public 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. |
|
public void |
handleNotification(Notification note, Object handback)Handles notifications received by this model MBean. |
|
public Object |
invoke(String opName, Object[] opArgs, String[] signature)Invokes the named operation and emits any configured call notifications. |
|
public void |
setManagedResource(Object obj)Updates the managed resource exposed by this model MBean. |
Creates a model MBean for the supplied managed resource.
objectRef - the resource to exposeCreates an empty model MBean.
Creates a model MBean backed by the supplied metadata.
mbi - the model MBean metadataSets 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],...,}
server - the MBeanServer is to be registered.descriptor - a map containing info about the event 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 layout
item -> [Map[methodListener:[target:"", tpe:"", callback:&Closure], ... ,]]
descriptor - MetaMap descriptor containing description of operation call listenersHandles notifications received by this model MBean.
note - the received notificationhandback - the handback object supplied at registration timeInvokes the named operation and emits any configured call notifications.
opName - the operation nameopArgs - the invocation argumentssignature - the argument signatureUpdates the managed resource exposed by this model MBean.
obj - the resource to exposeCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.