|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DynamicWrapperMBean extends DynamicMBean
An MBean can implement this interface to affect how the MBeanServer's
getClassLoaderFor and
isInstanceOf methods behave.
If these methods should refer to a wrapped object rather than the
MBean object itself, then the getWrappedObject() method should
return that wrapped object.
MBeanServer.getClassLoaderFor(javax.management.ObjectName),
MBeanServer.isInstanceOf(javax.management.ObjectName, java.lang.String)| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getWrappedClassLoader()
The ClassLoader for this MBean, which can be used to
retrieve resources associated with the MBean for example. |
Object |
getWrappedObject()
The resource corresponding to this MBean. |
| Methods inherited from interface javax.management.DynamicMBean |
|---|
getAttribute, getAttributes, getMBeanInfo, invoke, setAttribute, setAttributes |
| Method Detail |
|---|
Object getWrappedObject()
The resource corresponding to this MBean. This is the object whose
class name should be reflected by the MBean's
getMBeanInfo().getClassName() for example. For a "plain"
DynamicMBean it will be "this". For an MBean that wraps another
object, in the manner of StandardMBean, it will be the
wrapped object.
ClassLoader getWrappedClassLoader()
The ClassLoader for this MBean, which can be used to
retrieve resources associated with the MBean for example. Usually,
it will be
getWrappedObject().getClass().getClassLoader().
ClassLoader for this MBean.
|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.