com.sun.jdmk.comm
Class DefaultMapper

java.lang.Object
  extended by com.sun.jdmk.comm.DefaultMapper
All Implemented Interfaces:
Mapper

Deprecated. MBean proxies should be generated using MBeanServerInvocationHandler.newProxyInstance. The class DefaultMapper may be removed in a future version of Java DMK.

public class DefaultMapper
extends Object
implements Mapper

This class is used for mapping object instance into proxy class name name. Given an ObjectInstance the mapper service should be able to give the name of the Java class to use for representing the object as a ProxyMBean. To be coherent with a java extension, no class could be added in javax.management. More generally, no class could be added in java.xxx or in javax.xxx. The DefaultMapper behavior will follow these rules: 1) The generated class name is obtained by appending "Proxy" at the end of the class name 2) If the generated class name obtained after rule 1, begins with "java." or "javax." (javax.management.monitor.GaugeMonitorProxy for example), generated class name will not belong to any package. In other term, we remove package clause if package is javax.xxx or java.xxx


Constructor Summary
DefaultMapper()
          Deprecated.  
 
Method Summary
 String getClassForProxyMBean(ObjectInstance instance)
          Deprecated. Gets name of a Java class to use for representing a proxyMBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMapper

public DefaultMapper()
Deprecated. 
Method Detail

getClassForProxyMBean

public String getClassForProxyMBean(ObjectInstance instance)
                             throws ProxyMBeanInstantiationException
Deprecated. 
Gets name of a Java class to use for representing a proxyMBean.

Specified by:
getClassForProxyMBean in interface Mapper
Parameters:
instance - The object instance of the object for which the implementing name is requested.
Returns:
The name of the Java class to use for representing the proxyMBean.
Throws:
ProxyMBeanInstantiationException - An error occurs.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.