mx4j.adaptor.rmi
Class UnmarshallingMBeanServer
java.lang.Object
mx4j.server.ChainedMBeanServer
mx4j.adaptor.rmi.UnmarshallingMBeanServer
- All Implemented Interfaces:
- MBeanServer
- public class UnmarshallingMBeanServer
- extends ChainedMBeanServer
A decorator for MBeanServer that takes care of unmarshalling RMI arguments that are known to the MBean
but not to the adaptor.
- Version:
- $Revision: 1.2 $
- Author:
- Simone Bordet
Method Summary |
ObjectInstance |
createMBean(java.lang.String className,
ObjectName objectName,
java.lang.Object[] args,
java.lang.String[] parameters)
|
ObjectInstance |
createMBean(java.lang.String className,
ObjectName objectName,
ObjectName loaderName,
java.lang.Object[] args,
java.lang.String[] parameters)
|
java.lang.Object |
invoke(ObjectName objectName,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.String[] parameters)
|
void |
setAttribute(ObjectName objectName,
Attribute attribute)
|
AttributeList |
setAttributes(ObjectName objectName,
AttributeList attributes)
|
Methods inherited from class mx4j.server.ChainedMBeanServer |
addNotificationListener, addNotificationListener, createMBean, createMBean, deserialize, deserialize, deserialize, getAttribute, getAttributes, getDefaultDomain, getMBeanCount, getMBeanInfo, getMBeanServer, getObjectInstance, instantiate, instantiate, instantiate, instantiate, isInstanceOf, isRegistered, queryMBeans, queryNames, registerMBean, removeNotificationListener, removeNotificationListener, unregisterMBean |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnmarshallingMBeanServer
public UnmarshallingMBeanServer(MBeanServer server)
createMBean
public ObjectInstance createMBean(java.lang.String className,
ObjectName objectName,
java.lang.Object[] args,
java.lang.String[] parameters)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException
- Specified by:
createMBean
in interface MBeanServer
- Overrides:
createMBean
in class ChainedMBeanServer
- Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
- See Also:
MBeanServer.createMBean(java.lang.String, javax.management.ObjectName)
createMBean
public ObjectInstance createMBean(java.lang.String className,
ObjectName objectName,
ObjectName loaderName,
java.lang.Object[] args,
java.lang.String[] parameters)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
InstanceNotFoundException
- Specified by:
createMBean
in interface MBeanServer
- Overrides:
createMBean
in class ChainedMBeanServer
- Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
- See Also:
MBeanServer.createMBean(java.lang.String, javax.management.ObjectName)
setAttribute
public void setAttribute(ObjectName objectName,
Attribute attribute)
throws InstanceNotFoundException,
AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Specified by:
setAttribute
in interface MBeanServer
- Overrides:
setAttribute
in class ChainedMBeanServer
- Throws:
InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
- See Also:
MBeanServer.setAttribute(javax.management.ObjectName, javax.management.Attribute)
setAttributes
public AttributeList setAttributes(ObjectName objectName,
AttributeList attributes)
throws InstanceNotFoundException,
ReflectionException
- Specified by:
setAttributes
in interface MBeanServer
- Overrides:
setAttributes
in class ChainedMBeanServer
- Throws:
InstanceNotFoundException
ReflectionException
- See Also:
MBeanServer.setAttributes(javax.management.ObjectName, javax.management.AttributeList)
invoke
public java.lang.Object invoke(ObjectName objectName,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.String[] parameters)
throws InstanceNotFoundException,
MBeanException,
ReflectionException
- Specified by:
invoke
in interface MBeanServer
- Overrides:
invoke
in class ChainedMBeanServer
- Throws:
InstanceNotFoundException
MBeanException
ReflectionException
- See Also:
MBeanServer.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object[], java.lang.String[])
Copyright © 2001-2002 MX4J Team. All Rights Reserved.