类 SpringModelMBean
java.lang.Object
javax.management.modelmbean.RequiredModelMBean
cn.taketoday.jmx.export.SpringModelMBean
- 所有已实现的接口:
DynamicMBean,MBeanRegistration,ModelMBean,ModelMBeanNotificationBroadcaster,NotificationBroadcaster,NotificationEmitter,PersistentMBean
Extension of the
RequiredModelMBean class that ensures the
thread context ClassLoader is switched
for the managed resource's ClassLoader before any invocations occur.- 从以下版本开始:
- 4.0
- 作者:
- Rob Harrop
- 另请参阅:
-
构造器概要
构造器构造器说明Construct a new SpringModelMBean instance with an emptyModelMBeanInfo.Construct a new SpringModelMBean instance with the givenModelMBeanInfo. -
方法概要
修饰符和类型方法说明getAttribute(String attrName) Switches thecontext ClassLoaderfor the managed resourcesClassLoaderbefore allowing the invocation to occur.getAttributes(String[] attrNames) Switches thecontext ClassLoaderfor the managed resourcesClassLoaderbefore allowing the invocation to occur.Switches thecontext ClassLoaderfor the managed resourcesClassLoaderbefore allowing the invocation to occur.voidsetAttribute(Attribute attribute) Switches thecontext ClassLoaderfor the managed resourcesClassLoaderbefore allowing the invocation to occur.setAttributes(AttributeList attributes) Switches thecontext ClassLoaderfor the managed resourcesClassLoaderbefore allowing the invocation to occur.voidsetManagedResource(Object managedResource, String managedResourceType) Sets managed resource to expose and stores itsClassLoader.从类继承的方法 javax.management.modelmbean.RequiredModelMBean
addAttributeChangeNotificationListener, addNotificationListener, getClassLoaderRepository, getMBeanInfo, getNotificationInfo, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setModelMBeanInfo, store
-
构造器详细资料
-
SpringModelMBean
Construct a new SpringModelMBean instance with an emptyModelMBeanInfo. -
SpringModelMBean
Construct a new SpringModelMBean instance with the givenModelMBeanInfo.
-
-
方法详细资料
-
setManagedResource
public void setManagedResource(Object managedResource, String managedResourceType) throws MBeanException, InstanceNotFoundException, InvalidTargetObjectTypeException Sets managed resource to expose and stores itsClassLoader. -
invoke
public Object invoke(String opName, Object[] opArgs, String[] sig) throws MBeanException, ReflectionException Switches thecontext ClassLoaderfor the managed resourcesClassLoaderbefore allowing the invocation to occur. -
getAttribute
public Object getAttribute(String attrName) throws AttributeNotFoundException, MBeanException, ReflectionException Switches thecontext ClassLoaderfor the managed resourcesClassLoaderbefore allowing the invocation to occur. -
getAttributes
Switches thecontext ClassLoaderfor the managed resourcesClassLoaderbefore allowing the invocation to occur.- 指定者:
getAttributes在接口中DynamicMBean- 覆盖:
getAttributes在类中RequiredModelMBean- 另请参阅:
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException Switches thecontext ClassLoaderfor the managed resourcesClassLoaderbefore allowing the invocation to occur. -
setAttributes
Switches thecontext ClassLoaderfor the managed resourcesClassLoaderbefore allowing the invocation to occur.
-