|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.modelmbean.RequiredModelMBean org.springframework.jmx.export.SpringModelMBean
public class SpringModelMBean
Extension of the RequiredModelMBean
class that ensures the
thread context ClassLoader
is switched
for the managed resource's ClassLoader
before any invocations occur.
RequiredModelMBean
Constructor Summary | |
---|---|
SpringModelMBean()
Construct a new SpringModelMBean instance with an empty ModelMBeanInfo . |
|
SpringModelMBean(ModelMBeanInfo mbi)
Construct a new SpringModelMBean instance with the given ModelMBeanInfo . |
Method Summary | |
---|---|
Object |
getAttribute(String attrName)
Switches the context ClassLoader for the
managed resources ClassLoader before allowing the invocation to occur. |
AttributeList |
getAttributes(String[] attrNames)
Switches the context ClassLoader for the
managed resources ClassLoader before allowing the invocation to occur. |
Object |
invoke(String opName,
Object[] opArgs,
String[] sig)
Switches the context ClassLoader for the
managed resources ClassLoader before allowing the invocation to occur. |
void |
setAttribute(Attribute attribute)
Switches the context ClassLoader for the
managed resources ClassLoader before allowing the invocation to occur. |
AttributeList |
setAttributes(AttributeList attributes)
Switches the context ClassLoader for the
managed resources ClassLoader before allowing the invocation to occur. |
void |
setManagedResource(Object managedResource,
String managedResourceType)
Sets managed resource to expose and stores its ClassLoader . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringModelMBean() throws MBeanException, RuntimeOperationsException
ModelMBeanInfo
.
MBeanException
RuntimeOperationsException
RequiredModelMBean.RequiredModelMBean()
public SpringModelMBean(ModelMBeanInfo mbi) throws MBeanException, RuntimeOperationsException
ModelMBeanInfo
.
MBeanException
RuntimeOperationsException
RequiredModelMBean.RequiredModelMBean(ModelMBeanInfo)
Method Detail |
---|
public void setManagedResource(Object managedResource, String managedResourceType) throws MBeanException, InstanceNotFoundException, InvalidTargetObjectTypeException
ClassLoader
.
setManagedResource
in interface ModelMBean
setManagedResource
in class RequiredModelMBean
MBeanException
InstanceNotFoundException
InvalidTargetObjectTypeException
public Object invoke(String opName, Object[] opArgs, String[] sig) throws MBeanException, ReflectionException
context ClassLoader
for the
managed resources ClassLoader
before allowing the invocation to occur.
invoke
in interface DynamicMBean
invoke
in class RequiredModelMBean
MBeanException
ReflectionException
DynamicMBean.invoke(java.lang.String, java.lang.Object[], java.lang.String[])
public Object getAttribute(String attrName) throws AttributeNotFoundException, MBeanException, ReflectionException
context ClassLoader
for the
managed resources ClassLoader
before allowing the invocation to occur.
getAttribute
in interface DynamicMBean
getAttribute
in class RequiredModelMBean
AttributeNotFoundException
MBeanException
ReflectionException
DynamicMBean.getAttribute(java.lang.String)
public AttributeList getAttributes(String[] attrNames)
context ClassLoader
for the
managed resources ClassLoader
before allowing the invocation to occur.
getAttributes
in interface DynamicMBean
getAttributes
in class RequiredModelMBean
DynamicMBean.getAttributes(java.lang.String[])
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
context ClassLoader
for the
managed resources ClassLoader
before allowing the invocation to occur.
setAttribute
in interface DynamicMBean
setAttribute
in class RequiredModelMBean
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
DynamicMBean.setAttribute(javax.management.Attribute)
public AttributeList setAttributes(AttributeList attributes)
context ClassLoader
for the
managed resources ClassLoader
before allowing the invocation to occur.
setAttributes
in interface DynamicMBean
setAttributes
in class RequiredModelMBean
DynamicMBean.setAttributes(javax.management.AttributeList)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |