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

Constructor Summary
UnmarshallingMBeanServer(MBeanServer server)
           
 
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
 

Constructor Detail

UnmarshallingMBeanServer

public UnmarshallingMBeanServer(MBeanServer server)
Method Detail

createMBean

public ObjectInstance createMBean(java.lang.String className,
                                  ObjectName objectName,
                                  java.lang.Object[] args,
                                  java.lang.String[] parameters)
                           throws ReflectionException,
                                  InstanceAlreadyExistsException,
                                  MBeanRegistrationException,
                                  MBeanException,
                                  NotCompliantMBeanException
Overrides:
createMBean in class ChainedMBeanServer
Following copied from class: mx4j.server.ChainedMBeanServer
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
Overrides:
createMBean in class ChainedMBeanServer
Following copied from class: mx4j.server.ChainedMBeanServer
See Also:
MBeanServer.createMBean(java.lang.String, javax.management.ObjectName)

setAttribute

public void setAttribute(ObjectName objectName,
                         Attribute attribute)
                  throws InstanceNotFoundException,
                         AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Overrides:
setAttribute in class ChainedMBeanServer
Following copied from class: mx4j.server.ChainedMBeanServer
See Also:
MBeanServer.setAttribute(javax.management.ObjectName, javax.management.Attribute)

setAttributes

public AttributeList setAttributes(ObjectName objectName,
                                   AttributeList attributes)
                            throws InstanceNotFoundException,
                                   ReflectionException
Overrides:
setAttributes in class ChainedMBeanServer
Following copied from class: mx4j.server.ChainedMBeanServer
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
Overrides:
invoke in class ChainedMBeanServer
Following copied from class: mx4j.server.ChainedMBeanServer
See Also:
MBeanServer.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object[], java.lang.String[])


Copyright © 2001-2002 MX4J Team. All Rights Reserved.