RequiredModelMBean class that ensures the
thread context ClassLoader is switched
for the managed resource's ClassLoader before any invocations occur.
RequiredModelMBean
| Modifier and Type | Field and Description |
|---|---|
| private ClassLoader | managedResourceClassLoader
Stores the |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SpringModelMBean(ModelMBeanInfo mbi)
Construct a new SpringModelMBean instance with the given |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getAttribute(String
A String specifying the name of the
attribute to be retrieved. It must match the name of a
ModelMBeanAttributeInfo. attrName)Overrides javax. Implements javax. context ClassLoader for the
managed resources ClassLoader before allowing the invocation to occur.
|
| public AttributeList | getAttributes(String[]
A String array of names of the attributes
to be retrieved. attrNames)Overrides javax. Implements javax. context ClassLoader for the
managed resources ClassLoader before allowing the invocation to occur.
|
| public Object | invoke(String
The name of the method to be invoked. The
name can be the fully qualified method name including the
classname, or just the method name if the classname is
defined in the 'class' field of the operation descriptor. opName, Object[] An array containing the parameters to be set
when the operation is invoked opArgs, String[] An array containing the signature of the
operation. The class objects will be loaded using the same
class loader as the one used for loading the MBean on which
the operation was invoked. sig)Overrides javax. Implements javax. context ClassLoader for the
managed resources ClassLoader before allowing the invocation to occur.
|
| public void | setAttribute(Attribute
The Attribute instance containing the name of
the attribute to be set and the value it is to be set to. attribute)Overrides javax. Implements javax. context ClassLoader for the
managed resources ClassLoader before allowing the invocation to occur.
|
| public AttributeList | setAttributes(AttributeList
A list of attributes: The identification of the
attributes to be set and the values they are to be set to. attributes)Overrides javax. Implements javax. context ClassLoader for the
managed resources ClassLoader before allowing the invocation to occur.
|
| public void | setManagedResource(Object
Object that is the managed resource managedResource, String The type of reference for the managed resource.
managedResourceType)Can be: "ObjectReference", "Handle", "IOR", "EJBHandle", or "RMIReference". In this implementation only "ObjectReference" is supported. Overrides javax. Implements javax. ClassLoader.
|
| managedResourceClassLoader | back to summary |
|---|---|
| private ClassLoader managedResourceClassLoader Stores the | |
| SpringModelMBean | back to summary |
|---|---|
| public SpringModelMBean() throws MBeanException, RuntimeOperationsException Construct a new SpringModelMBean instance with an empty | |
| SpringModelMBean | back to summary |
|---|---|
| public SpringModelMBean(ModelMBeanInfo mbi) throws MBeanException, RuntimeOperationsException Construct a new SpringModelMBean instance with the given | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String attrName) throws AttributeNotFoundException, MBeanException, ReflectionException Overrides javax. Implements javax. Switches the
| |
| getAttributes | back to summary |
|---|---|
| public AttributeList getAttributes(String[] attrNames) Overrides javax. Implements javax. Switches the
| |
| invoke | back to summary |
|---|---|
| public Object invoke(String opName, Object[] opArgs, String[] sig) throws MBeanException, ReflectionException Overrides javax. Implements javax. Switches the
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException Overrides javax. Implements javax. Switches the
| |
| setAttributes | back to summary |
|---|---|
| public AttributeList setAttributes(AttributeList attributes) Overrides javax. Implements javax. Switches the
| |
| setManagedResource | back to summary |
|---|---|
| public void setManagedResource(Object managedResource, String managedResourceType) throws MBeanException, InstanceNotFoundException, InvalidTargetObjectTypeException Overrides javax. Implements javax. Sets managed resource to expose and stores its
| |