APIdia Launch Partner
Top Description Methods
com.sun.jmx.interceptor

public Interface MBeanServerInterceptor

extends MBeanServer
Known Direct Implementers
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor
Imports
java.io.ObjectInputStream, javax.management.InstanceNotFoundException, .MBeanException, .MBeanServer, .ObjectName, .OperationsException, .ReflectionException, javax.management.loading.ClassLoaderRepository

This interface specifies the behavior to be implemented by an MBean Server Interceptor. An MBean Server Interceptor has essentially the same interface as an MBean Server. An MBean Server forwards received requests to its default interceptor, which may handle them itself or forward them to other interceptors. The default interceptor may be changed via the com.sun.jmx.mbeanserver.SunJmxMBeanServer#setMBeanServerInterceptor method.

The initial default interceptor provides the standard MBean Server behavior. It handles a collection of named MBeans, each represented by a Java object. A replacement default interceptor may build on this behavior, for instance by adding logging or security checks, before forwarding requests to the initial default interceptor. Or, it may route each request to one of a number of sub-interceptors, for instance based on the ObjectName in the request.

An interceptor, default or not, need not implement MBeans as Java objects, in the way that the initial default interceptor does. It may instead implement virtual MBeans, which do not exist as Java objects when they are not in use. For example, these MBeans could be implemented by forwarding requests to a database, or to a remote MBean server, or by performing system calls to query or modify system resources.

Since
1.5

Method Summary

Modifier and TypeMethod and Description
public ClassLoaderRepository
public Object
instantiate(String className)

Redeclares javax.management.MBeanServer.instantiate.

This method should never be called.

public Object
instantiate(String className, ObjectName loaderName)

Redeclares javax.management.MBeanServer.instantiate.

This method should never be called.

public Object
instantiate(String className, Object[] params, String[] signature)

Redeclares javax.management.MBeanServer.instantiate.

This method should never be called.

public Object
instantiate(String className, ObjectName loaderName, Object[] params, String[] signature)

Redeclares javax.management.MBeanServer.instantiate.

This method should never be called.

Inherited from javax.management.MBeanServer:
addNotificationListeneraddNotificationListenercreateMBeancreateMBeancreateMBeancreateMBeandeserializedeserializedeserializegetAttributegetAttributesgetClassLoadergetClassLoaderForgetDefaultDomaingetDomainsgetMBeanCountgetMBeanInfogetObjectInstanceinvokeisInstanceOfisRegisteredqueryMBeansqueryNamesregisterMBeanremoveNotificationListenerremoveNotificationListenerremoveNotificationListenerremoveNotificationListenersetAttributesetAttributesunregisterMBean

Method Detail

getClassLoaderRepositoryback to summary
public ClassLoaderRepository getClassLoaderRepository()

Redeclares javax.management.MBeanServer.getClassLoaderRepository.

This method should never be called. Usually throws UnsupportedOperationException.

instantiateback to summary
public Object instantiate(String className) throws ReflectionException, MBeanException

Redeclares javax.management.MBeanServer.instantiate.

This method should never be called. Usually hrows UnsupportedOperationException.

Exceptions
ReflectionException:

Doc from javax.management.MBeanServer.instantiate.

Wraps a java.lang.ClassNotFoundException or the java.lang.Exception that occurred when trying to invoke the object's constructor.

MBeanException:

Doc from javax.management.MBeanServer.instantiate.

The constructor of the object has thrown an exception

instantiateback to summary
public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException

Redeclares javax.management.MBeanServer.instantiate.

This method should never be called. Usually throws UnsupportedOperationException.

Exceptions
ReflectionException:

Doc from javax.management.MBeanServer.instantiate.

Wraps a java.lang.ClassNotFoundException or the java.lang.Exception that occurred when trying to invoke the object's constructor.

MBeanException:

Doc from javax.management.MBeanServer.instantiate.

The constructor of the object has thrown an exception.

InstanceNotFoundException:

Doc from javax.management.MBeanServer.instantiate.

The specified class loader is not registered in the MBeanServer.

instantiateback to summary
public Object instantiate(String className, Object[] params, String[] signature) throws ReflectionException, MBeanException

Redeclares javax.management.MBeanServer.instantiate.

This method should never be called. Usually throws UnsupportedOperationException.

Exceptions
ReflectionException:

Doc from javax.management.MBeanServer.instantiate.

Wraps a java.lang.ClassNotFoundException or the java.lang.Exception that occurred when trying to invoke the object's constructor.

MBeanException:

Doc from javax.management.MBeanServer.instantiate.

The constructor of the object has thrown an exception

instantiateback to summary
public Object instantiate(String className, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, MBeanException, InstanceNotFoundException

Redeclares javax.management.MBeanServer.instantiate.

This method should never be called. Usually throws UnsupportedOperationException.

Exceptions
ReflectionException:

Doc from javax.management.MBeanServer.instantiate.

Wraps a java.lang.ClassNotFoundException or the java.lang.Exception that occurred when trying to invoke the object's constructor.

MBeanException:

Doc from javax.management.MBeanServer.instantiate.

The constructor of the object has thrown an exception

InstanceNotFoundException:

Doc from javax.management.MBeanServer.instantiate.

The specified class loader is not registered in the MBean server.