On this page
[Groovy] Class JmxBeanExportFactory
- groovy.jmx.builder.JmxBeanExportFactory
class JmxBeanExportFactory
extends AbstractFactory
This factory returns a container node for all other nodes that are used to collect meta data for resources that are exported to the MBeanServer for management.
Supported syntax:
def jmx = new JmxBuilder()
jmx.export(registrationPolicy:"replace|ignore|error") {
bean(...)
}
registrationPolicy indicates how resources will be registered: "replace" - replaces existing bean,
"ignore" - ignores the registration request if bean already exists.
"error" - throws error if bean is already registered.
Properties Summary
Type | Name and description |
---|---|
Object |
registrationPolicy |
Constructor Summary
Constructor and description |
---|
JmxBeanExportFactory() |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
boolean |
isLeaf() |
|
Object |
newInstance(FactoryBuilderSupport builder, Object nodeName, Object nodeArgs, Map nodeAttribs) |
|
boolean |
onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map nodeAttribs) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class AbstractFactory |
setParent, isLeaf, onNodeChildren, setChild, onNodeCompleted, onFactoryRegistration, isHandlesNodeChildren, onHandleNodeAttributes, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, newInstance |
Property Detail
Object registrationPolicy
Constructor Detail
JmxBeanExportFactory()
Method Detail
boolean isLeaf()
Object newInstance(FactoryBuilderSupport builder, Object nodeName, Object nodeArgs, Map nodeAttribs)
boolean onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map nodeAttribs)
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/groovy/jmx/builder/JmxBeanExportFactory.html