类 MBeanProxyFactoryBean
java.lang.Object
cn.taketoday.jmx.access.MBeanClientInterceptor
cn.taketoday.jmx.access.MBeanProxyFactoryBean
- 所有已实现的接口:
Aware,BeanClassLoaderAware,DisposableBean,FactoryBean<Object>,InitializingBean,Advice,Interceptor,MethodInterceptor
public class MBeanProxyFactoryBean
extends MBeanClientInterceptor
implements FactoryBean<Object>, BeanClassLoaderAware, InitializingBean
Creates a proxy to a managed resource running either locally or remotely.
The "proxyInterface" property defines the interface that the generated
proxy is supposed to implement. This interface should define methods and
properties that correspond to operations and attributes in the management
interface of the resource you wish to proxy.
There is no need for the managed resource to implement the proxy interface, although you may find it convenient to do. It is not required that every operation and attribute in the management interface is matched by a corresponding property or method in the proxy interface.
Attempting to invoke or access any method or property on the proxy
interface that does not correspond to the management interface will lead
to an InvalidInvocationException.
- 从以下版本开始:
- 4.0
- 作者:
- Rob Harrop, Juergen Hoeller
- 另请参阅:
-
字段概要
从类继承的字段 cn.taketoday.jmx.access.MBeanClientInterceptor
logger从接口继承的字段 cn.taketoday.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidChecks that theproxyInterfacehas been specified and then generates the proxy for the target MBean.Class<?>booleanvoidsetBeanClassLoader(ClassLoader classLoader) voidsetProxyInterface(Class<?> proxyInterface) Set the interface that the generated proxy will implement.从类继承的方法 cn.taketoday.jmx.access.MBeanClientInterceptor
convertResultValueIfNecessary, destroy, doInvoke, getEnvironment, getManagementInterface, handleConnectFailure, invoke, isPrepared, prepare, setAgentId, setConnectOnStartup, setEnvironment, setManagementInterface, setObjectName, setRefreshOnConnectFailure, setServer, setServiceUrl, setUseStrictCasing
-
构造器详细资料
-
MBeanProxyFactoryBean
public MBeanProxyFactoryBean()
-
-
方法详细资料
-
setProxyInterface
Set the interface that the generated proxy will implement.This will usually be a management interface that matches the target MBean, exposing bean property setters and getters for MBean attributes and conventional Java methods for MBean operations.
-
setBeanClassLoader
- 指定者:
setBeanClassLoader在接口中BeanClassLoaderAware- 覆盖:
setBeanClassLoader在类中MBeanClientInterceptor
-
afterPropertiesSet
Checks that theproxyInterfacehas been specified and then generates the proxy for the target MBean. -
getObject
- 指定者:
getObject在接口中FactoryBean<Object>
-
getObjectType
- 指定者:
getObjectType在接口中FactoryBean<Object>
-
isSingleton
public boolean isSingleton()- 指定者:
isSingleton在接口中FactoryBean<Object>
-