-
- 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
Methods Modifier and Type Method and Description MBeanServer
getMBeanServer()
Returns the MBeanServer object to which requests will be forwarded.void
setMBeanServer(MBeanServer mbs)
Sets the MBeanServer object to which requests will be forwarded after treatment by this object.-
Methods inherited from interface javax.management.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
-
-
-
-
Method Detail
-
getMBeanServer
MBeanServer getMBeanServer()
Returns the MBeanServer object to which requests will be forwarded.- Returns:
- the MBeanServer object to which requests will be forwarded, or null if there is none.
- See Also:
setMBeanServer(javax.management.MBeanServer)
-
setMBeanServer
void setMBeanServer(MBeanServer mbs)
Sets the MBeanServer object to which requests will be forwarded after treatment by this object.- Parameters:
mbs
- the MBeanServer object to which requests will be forwarded.- Throws:
IllegalArgumentException
- if this object is already forwarding to an MBeanServer object or ifmbs
is null or ifmbs
is identical to this object.- See Also:
getMBeanServer()
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/management/remote/MBeanServerForwarder.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.