Interface MBeanServerForwarder
- All Superinterfaces:
MBeanServer, MBeanServerConnection
public interface MBeanServerForwarder extends MBeanServer
An object of this class implements the MBeanServer interface and wraps another object that also implements that interface. Typically, an implementation of this interface performs some action in some or all methods of the MBeanServer interface before and/or after forwarding the method to the wrapped object. Examples include security checking and logging.
- Since:
- 1.5
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
MBeanServer |
getMBeanServer() |
Returns the MBeanServer object to which requests will be forwarded. |
void |
setMBeanServer |
Sets the MBeanServer object to which requests will be forwarded after treatment by this object. |
Methods declared in interface MBeanServer
addNotificationListener, addNotificationListener, createMBean, createMBean, createMBean, createMBean, deserialize, deserialize, deserialize, getAttribute, getAttributes, getClassLoader, getClassLoaderFor, getClassLoaderRepository, getDefaultDomain, getDomains, getMBeanCount, getMBeanInfo, getObjectInstance, instantiate, instantiate, instantiate, instantiate, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, registerMBean, removeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, setAttribute, setAttributes, unregisterMBean | Modifier and Type | Method | Description |
|---|---|---|
void |
addNotificationListener |
Adds a listener to a registered MBean. |
void |
addNotificationListener |
Adds a listener to a registered MBean. |
ObjectInstance |
createMBean |
Instantiates and registers an MBean in the MBean server. |
ObjectInstance |
createMBean |
Instantiates and registers an MBean in the MBean server. |
ObjectInstance |
createMBean |
Instantiates and registers an MBean in the MBean server. |
ObjectInstance |
createMBean |
Instantiates and registers an MBean in the MBean server. |
default ObjectInputStream |
deserialize |
Deprecated. |
default ObjectInputStream |
deserialize |
Deprecated. Use getClassLoader to obtain the class loader for deserialization. |
default ObjectInputStream |
deserialize |
Deprecated. Use getClassLoaderFor to obtain the appropriate class loader for deserialization. |
Object |
getAttribute |
Gets the value of a specific attribute of a named MBean. |
AttributeList |
getAttributes |
Retrieves the values of several attributes of a named MBean. |
ClassLoader |
getClassLoader |
Return the named ClassLoader. |
ClassLoader |
getClassLoaderFor |
Return the ClassLoader that was used for loading the class of the named MBean. |
ClassLoaderRepository |
getClassLoaderRepository() |
Return the ClassLoaderRepository for this MBeanServer. |
String |
getDefaultDomain() |
Returns the default domain used for naming the MBean. |
String[] |
getDomains() |
Returns the list of domains in which any MBean is currently registered. |
Integer |
getMBeanCount() |
Returns the number of MBeans registered in the MBean server. |
MBeanInfo |
getMBeanInfo |
This method discovers the attributes and operations that an MBean exposes for management. |
ObjectInstance |
getObjectInstance |
Gets the ObjectInstance for a given MBean registered with the MBean server. |
Object |
instantiate |
Instantiates an object using the list of all class loaders registered in the MBean server's Class Loader
Repository. |
Object |
instantiate |
Instantiates an object using the list of all class loaders registered in the MBean server Class Loader
Repository. |
Object |
instantiate |
Instantiates an object using the class Loader specified by its ObjectName. |
Object |
instantiate |
Instantiates an object. |
Object |
invoke |
Invokes an operation on an MBean. |
boolean |
isInstanceOf |
Returns true if the MBean specified is an instance of the specified class, false otherwise. |
boolean |
isRegistered |
Checks whether an MBean, identified by its object name, is already registered with the MBean server. |
Set |
queryMBeans |
Gets MBeans controlled by the MBean server. |
Set |
queryNames |
Gets the names of MBeans controlled by the MBean server. |
ObjectInstance |
registerMBean |
Registers a pre-existing object as an MBean with the MBean server. |
void |
removeNotificationListener |
Removes a listener from a registered MBean. |
void |
removeNotificationListener |
Removes a listener from a registered MBean. |
void |
removeNotificationListener |
Removes a listener from a registered MBean. |
void |
removeNotificationListener |
Removes a listener from a registered MBean. |
void |
setAttribute |
Sets the value of a specific attribute of a named MBean. |
AttributeList |
setAttributes |
Sets the values of several attributes of a named MBean. |
void |
unregisterMBean |
Unregisters an MBean from the MBean server. |
Method Details
getMBeanServer
MBeanServer getMBeanServer()
- Returns:
- the MBeanServer object to which requests will be forwarded, or null if there is none.
- See Also:
setMBeanServer
void setMBeanServer(MBeanServer mbs)
- Parameters:
-
mbs- the MBeanServer object to which requests will be forwarded. - Throws:
-
IllegalArgumentException- if this object is already forwarding to an MBeanServer object or ifmbsis null or ifmbsis identical to this object. - See Also:
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
MBeanServer.getClassLoaderRepository()to obtain the class loader repository and use it to deserialize.