org.apache.tomcat.util.mx
Class DynamicMBeanProxy

java.lang.Object
  extended by org.apache.tomcat.util.mx.DynamicMBeanProxy
All Implemented Interfaces:
DynamicMBean

Deprecated. The same functionality ( and more ) is now available in commons-modeler

public class DynamicMBeanProxy
extends Object
implements DynamicMBean

DynamicMBean implementation using introspection to manage any component that follows the bean/ant/Interceptor/Valve/Jk2 patterns. The class will wrap any component conforming to those patterns.

Author:
Costin Manolache

Constructor Summary
DynamicMBeanProxy()
          Deprecated. Create a Dynamic proxy, using introspection to manage a real tomcat component.
 
Method Summary
static String createMBean(Object proxy, String domain, String name)
          Deprecated.  
static String generateName(Class realClass)
          Deprecated. If a name was not provided, generate a name based on the class name and a sequence number.
 Object getAttribute(String attribute)
          Deprecated.  
 AttributeList getAttributes(String[] attributes)
          Deprecated.  
 MBeanInfo getMBeanInfo()
          Deprecated.  
static MBeanServer getMBeanServer()
          Deprecated.  
 String getName()
          Deprecated.  
 Object invoke(String method, Object[] arguments, String[] params)
          Deprecated. Invoke a method.
 String registerMBean(String domain)
          Deprecated.  
 void setAttribute(Attribute attribute)
          Deprecated.  
 AttributeList setAttributes(AttributeList attributes)
          Deprecated.  
 void setName(String name)
          Deprecated.  
 void setReal(Object realBean)
          Deprecated. Set the managed object.
static String unCapitalize(String name)
          Deprecated.  
static void unregisterMBean(Object o, String name)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicMBeanProxy

public DynamicMBeanProxy()
Deprecated. 
Create a Dynamic proxy, using introspection to manage a real tomcat component.

Method Detail

setName

public void setName(String name)
Deprecated. 

getName

public String getName()
Deprecated. 

generateName

public static String generateName(Class realClass)
Deprecated. 
If a name was not provided, generate a name based on the class name and a sequence number.


createMBean

public static String createMBean(Object proxy,
                                 String domain,
                                 String name)
Deprecated. 

registerMBean

public String registerMBean(String domain)
Deprecated. 

unregisterMBean

public static void unregisterMBean(Object o,
                                   String name)
Deprecated. 

getMBeanServer

public static MBeanServer getMBeanServer()
Deprecated. 

setReal

public void setReal(Object realBean)
Deprecated. 
Set the managed object.


getMBeanInfo

public MBeanInfo getMBeanInfo()
Deprecated. 
Specified by:
getMBeanInfo in interface DynamicMBean

getAttribute

public Object getAttribute(String attribute)
                    throws AttributeNotFoundException,
                           MBeanException,
                           ReflectionException
Deprecated. 
Specified by:
getAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
MBeanException
ReflectionException

setAttribute

public void setAttribute(Attribute attribute)
                  throws AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Deprecated. 
Specified by:
setAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

invoke

public Object invoke(String method,
                     Object[] arguments,
                     String[] params)
              throws MBeanException,
                     ReflectionException
Deprecated. 
Invoke a method. Only no param methods are supported at the moment ( init, start, execute, etc ) ( that's the most common pattern we have in tomcat/ant/etc )

Specified by:
invoke in interface DynamicMBean
Throws:
MBeanException
ReflectionException

setAttributes

public AttributeList setAttributes(AttributeList attributes)
Deprecated. 
Specified by:
setAttributes in interface DynamicMBean

getAttributes

public AttributeList getAttributes(String[] attributes)
Deprecated. 
Specified by:
getAttributes in interface DynamicMBean

unCapitalize

public static String unCapitalize(String name)
Deprecated. 


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.