class JmxListenerFactory
extends AbstractFactory
This factory class is used to create a listener() node for JmxBuilder. Listener nodes are used to create a generic event listener (that is automatically registered with the MBean) that can handle any event broadcasted on the MBeanServer's event bus.
Syntax supported:
JmxBuilder.listener(event:"event type", from:"Object Name"|ObjectName(), call:{event->
// event handling code here.
})
| Constructor and description |
|---|
JmxListenerFactory() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
isLeaf()Indicates that the listener node is terminal. |
|
Object |
newInstance(FactoryBuilderSupport builder, Object nodeName, Object nodeParam, Map nodeAttribs)Creates and registers a listener description. |
|
boolean |
onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map nodeAttribs)Leaves attribute handling to newInstance(FactoryBuilderSupport, Object, Object, Map). |
|
void |
onNodeCompleted(FactoryBuilderSupport builder, Object parentNode, Object thisNode)Adds the created listener metadata to its parent collection when one exists. |
| Methods inherited from class | Name |
|---|---|
class AbstractFactory |
isHandlesNodeChildren, isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, onNodeCompleted, setChild, setParent |
Indicates that the listener node is terminal.
trueCreates and registers a listener description.
builder - the active buildernodeName - the node namenodeParam - positional node argumentsnodeAttribs - named node attributesLeaves attribute handling to newInstance(FactoryBuilderSupport, Object, Object, Map).
builder - the active buildernode - the current nodenodeAttribs - remaining node attributesfalseAdds the created listener metadata to its parent collection when one exists.
builder - the active builderparentNode - the parent nodethisNode - the listener metadataCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.