groovy.util
Class GroovyMBean
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.GroovyMBean
- All Implemented Interfaces:
- GroovyObject
- public class GroovyMBean
- extends GroovyObjectSupport
A GroovyObject facade for an underlying MBean which acts like a normal
groovy object but which is actually implemented via
an underlying JMX MBean.
Properties and normal method invocations
delegate to the MBeanServer to the actual MBean.
- Version:
- $Revision: 1.2 $
- Author:
- James Strachan
Constructor Summary |
GroovyMBean(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyMBean
public GroovyMBean(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.management.JMException
server
public javax.management.MBeanServer server()
name
public javax.management.ObjectName name()
info
public javax.management.MBeanInfo info()
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interface GroovyObject
- Overrides:
getProperty
in class GroovyObjectSupport
setProperty
public void setProperty(String property,
Object value)
- Description copied from interface:
GroovyObject
- Sets the given property to the new value
- Specified by:
setProperty
in interface GroovyObject
- Overrides:
setProperty
in class GroovyObjectSupport
invokeMethod
public Object invokeMethod(String method,
Object arguments)
- Description copied from interface:
GroovyObject
- Invokes the given method
- Specified by:
invokeMethod
in interface GroovyObject
- Overrides:
invokeMethod
in class GroovyObjectSupport
createSignature
protected String[] createSignature(javax.management.MBeanOperationInfo info)
Copyright © 2003-2004 The Codehaus. All Rights Reserved.