com.sun.jaw.impl.agent.services.light
Class MetaDataSrv

java.lang.Object
  |
  +--com.sun.jaw.impl.agent.services.light.MetaDataSrv

Deprecated. As of Java Dynamic Management Kit 3.2, replaced by MBeanIntrospector

public class MetaDataSrv
extends java.lang.Object
implements MetaDataSrvIf

This class provides a simple implementation of a metadata service. The metadata service will be registered within the core management framework as a managed object. As such, the metadata service can be removed or replaced withi another metadata service. The implementation can be dynamically loaded into the CMF.

See Also:
MetaDataSrvIf, Serialized Form

Constructor Summary
MetaDataSrv()
          Deprecated. Constructs a MetaDataSrv.
 
Method Summary
 java.lang.reflect.Constructor findConstructor(java.lang.Class theClass, java.lang.Class[] parameterTypes)
          Deprecated. Find a specific constructor of a class
 java.lang.reflect.Method findGetter(java.lang.Class classObj, java.lang.String property)
          Deprecated. Find the getter of a specific property in an object.
 java.lang.reflect.Method findIndexedGetter(java.lang.Class classObj, java.lang.String property)
          Deprecated. Find the getter of a specific property in an object.
 java.lang.reflect.Method findIndexedSetter(java.lang.Class classObj, java.lang.String property)
          Deprecated. Finds the setter of a specific indexed property without knowing its type.
 java.lang.reflect.Method findIndexedSetter(java.lang.Class classObj, java.lang.String property, java.lang.Class type)
          Deprecated. Find the setter of a specific indexed property in an object.
 java.lang.String[] findListOfActions(java.lang.Class targetClass, boolean flat)
          Deprecated. Finds the list of actions available in a specific class.
 java.lang.String[] findListOfProperties(java.lang.Class targetClass, boolean flat)
          Deprecated. Finds the list of properties available in a specific class.
 java.lang.reflect.Method findMethod(java.lang.Class classObj, java.lang.String name)
          Deprecated. Find a specific method of an object without knowing the parameter types.
 java.lang.reflect.Method findMethod(java.lang.Class classObj, java.lang.String name, java.lang.Class[] parameterTypes)
          Deprecated. Find a specific method of an object
 java.lang.reflect.Method findPerform(java.lang.Class classObj, java.lang.String name, java.lang.Class[] parametersType)
          Deprecated. Find a specify perform method from the method name
 java.lang.reflect.Method findSetter(java.lang.Class classObj, java.lang.String property)
          Deprecated. Find the setter of a specific property without knowing its type.
 java.lang.reflect.Method findSetter(java.lang.Class classObj, java.lang.String property, java.lang.Class type)
          Deprecated. Find the setter of a specific property in an object.
 java.lang.String getClassVersion()
          Deprecated. Returns the version of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataSrv

public MetaDataSrv()
Deprecated. 
Constructs a MetaDataSrv.
Method Detail

findListOfProperties

public java.lang.String[] findListOfProperties(java.lang.Class targetClass,
                                               boolean flat)
Deprecated. 
Finds the list of properties available in a specific class.

When flat is false inherited properties are not returned.

Specified by:
findListOfProperties in interface MetaDataSrvIf

findListOfActions

public java.lang.String[] findListOfActions(java.lang.Class targetClass,
                                            boolean flat)
Deprecated. 
Finds the list of actions available in a specific class.

When flat is false inherited actions are not returned.

Specified by:
findListOfActions in interface MetaDataSrvIf

findMethod

public java.lang.reflect.Method findMethod(java.lang.Class classObj,
                                           java.lang.String name,
                                           java.lang.Class[] parameterTypes)
Deprecated. 
Find a specific method of an object
Specified by:
findMethod in interface MetaDataSrvIf
Parameters:
object - object for which the method is requested
name - name of the method to retrieve
parameterTypes - method formal parameter types
Returns:
the method or null if not found

findMethod

public java.lang.reflect.Method findMethod(java.lang.Class classObj,
                                           java.lang.String name)
Deprecated. 
Find a specific method of an object without knowing the parameter types.

The first method whose name matches is returned.

Specified by:
findMethod in interface MetaDataSrvIf
Parameters:
object - object for which the method is requested
name - name of the method to retrieve
Returns:
the method or null if not found

findGetter

public java.lang.reflect.Method findGetter(java.lang.Class classObj,
                                           java.lang.String property)
Deprecated. 
Find the getter of a specific property in an object.
Specified by:
findGetter in interface MetaDataSrvIf
Parameters:
object - object for which a getter is requested
property - property to look for in the object
Returns:
the method for accessing the property, null otherwise

findIndexedGetter

public java.lang.reflect.Method findIndexedGetter(java.lang.Class classObj,
                                                  java.lang.String property)
Deprecated. 
Find the getter of a specific property in an object.
Specified by:
findIndexedGetter in interface MetaDataSrvIf
Parameters:
object - object for which a getter is requested
property - property to look for in the object
Returns:
the method for accessing the property, null otherwise

findSetter

public java.lang.reflect.Method findSetter(java.lang.Class classObj,
                                           java.lang.String property,
                                           java.lang.Class type)
Deprecated. 
Find the setter of a specific property in an object.
Specified by:
findSetter in interface MetaDataSrvIf
Parameters:
object - object for which a getter is requested
property - property to look for in the object
type - type of the property
Returns:
the method for accessing the property, null otherwise

findSetter

public java.lang.reflect.Method findSetter(java.lang.Class classObj,
                                           java.lang.String property)
Deprecated. 
Find the setter of a specific property without knowing its type.
Specified by:
findSetter in interface MetaDataSrvIf
Parameters:
object - object for which a getter is requested
property - property to look for in the object
Returns:
the method for accessing the property, null otherwise

findIndexedSetter

public java.lang.reflect.Method findIndexedSetter(java.lang.Class classObj,
                                                  java.lang.String property,
                                                  java.lang.Class type)
Deprecated. 
Find the setter of a specific indexed property in an object.
Specified by:
findIndexedSetter in interface MetaDataSrvIf
Parameters:
object - object for which a getter is requested
property - property to look for in the object
type - type of the property
Returns:
the method for accessing the property, null otherwise

findIndexedSetter

public java.lang.reflect.Method findIndexedSetter(java.lang.Class classObj,
                                                  java.lang.String property)
Deprecated. 
Finds the setter of a specific indexed property without knowing its type.
Specified by:
findIndexedSetter in interface MetaDataSrvIf
Parameters:
object - object for which a getter is requested
property - property to look for in the object
Returns:
the method for accessing the property, null otherwise

findConstructor

public java.lang.reflect.Constructor findConstructor(java.lang.Class theClass,
                                                     java.lang.Class[] parameterTypes)
Deprecated. 
Find a specific constructor of a class
Specified by:
findConstructor in interface MetaDataSrvIf
Parameters:
name - name of the method to retrieve
parameterTypes - method formal parameter types
Returns:
the requested constructor or null if not found

findPerform

public java.lang.reflect.Method findPerform(java.lang.Class classObj,
                                            java.lang.String name,
                                            java.lang.Class[] parametersType)
Deprecated. 
Find a specify perform method from the method name
Specified by:
findPerform in interface MetaDataSrvIf
Parameters:
object - object for which the method is requested
name - name of the method to retreive
parameterType - method formal parameter type

getClassVersion

public java.lang.String getClassVersion()
Deprecated. 
Returns the version of this class.