com.sun.jaw.reference.agent.services
Interface MetaDataSrvIf

All Known Implementing Classes:
MetaDataSrv

public abstract interface MetaDataSrvIf
extends java.io.Serializable

This interface provides access to a metadata service.


Inner Class Summary
static class MetaDataSrvIf.Util
           
 
Fields inherited from class java.io.Serializable
serialVersionUID
 
Method Summary
 java.lang.reflect.Constructor findConstructor(java.lang.Class theClass, java.lang.Class[] parameterTypes)
          Finds a specific constructor of a class.
 java.lang.reflect.Method findGetter(java.lang.Class classObj, java.lang.String property)
          Finds the getter of a specific property in an object.
 java.lang.reflect.Method findIndexedGetter(java.lang.Class classObj, java.lang.String property)
          Finds the getter of a specific indexed property in an object.
 java.lang.reflect.Method findIndexedSetter(java.lang.Class classObj, java.lang.String property)
          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)
          Finds the setter of a specific indexed property in an object.
 java.lang.String[] findListOfActions(java.lang.Class targetClass, boolean flat)
          Finds the list of actions available in a specific class.
 java.lang.String[] findListOfProperties(java.lang.Class targetClass, boolean flat)
          Finds the list of properties available in a specific class.
 java.lang.reflect.Method findMethod(java.lang.Class classObj, java.lang.String name)
          Finds 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)
          Finds a specific method of an object using the method name.
 java.lang.reflect.Method findPerform(java.lang.Class classObj, java.lang.String name, java.lang.Class[] parametersTypes)
          Finds a specific perform method from the method name.
 java.lang.reflect.Method findSetter(java.lang.Class classObj, java.lang.String property)
          Finds 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)
          Finds the setter of a specific property in an object.
 

Method Detail

findListOfProperties

public java.lang.String[] findListOfProperties(java.lang.Class targetClass,
                                               boolean flat)
Finds the list of properties available in a specific class. When flat is false inherited properties are not returned.

findListOfActions

public java.lang.String[] findListOfActions(java.lang.Class targetClass,
                                            boolean flat)
Finds the list of actions available in a specific class. When flat is false inherited actions are not returned.

findGetter

public java.lang.reflect.Method findGetter(java.lang.Class classObj,
                                           java.lang.String property)
Finds the getter of a specific property in an object.
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)
Finds the getter of a specific indexed property in an object.
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)
Finds the setter of a specific property in an object.
Parameters:
object - Object for which a setter is requested.
property - Property to look for in the object.
type - Type of the property.
Returns:
The method for setting the property, null otherwise.

findSetter

public java.lang.reflect.Method findSetter(java.lang.Class classObj,
                                           java.lang.String property)
Finds the setter of a specific property without knowing its type.
Parameters:
object - Object for which a setter is requested.
property - Property to look for in the object.
Returns:
The method for setting the property, null otherwise.

findIndexedSetter

public java.lang.reflect.Method findIndexedSetter(java.lang.Class classObj,
                                                  java.lang.String property,
                                                  java.lang.Class type)
Finds the setter of a specific indexed property in an object.
Parameters:
object - Object for which a setter is requested.
property - Property to look for in the object.
type - Type of the property.
Returns:
The method for setting the property, null otherwise.

findIndexedSetter

public java.lang.reflect.Method findIndexedSetter(java.lang.Class classObj,
                                                  java.lang.String property)
Finds the setter of a specific indexed property without knowing its type.
Parameters:
object - Object for which a setter is requested.
property - Property to look for in the object.
Returns:
The method for setting the property, null otherwise.

findMethod

public java.lang.reflect.Method findMethod(java.lang.Class classObj,
                                           java.lang.String name,
                                           java.lang.Class[] parameterTypes)
Finds a specific method of an object using the method name.
Parameters:
object - Object for which the method is requested.
name - Name of the method to be retrieved.
parameterTypes - Method formal parameter types.
Returns:
The requested method or null if not found.

findMethod

public java.lang.reflect.Method findMethod(java.lang.Class classObj,
                                           java.lang.String name)
Finds a specific method of an object without knowing the parameter types.
Parameters:
object - Object for which the method is requested.
name - Name of the method to be retrieved.
Returns:
The requested method or null if not found.

findConstructor

public java.lang.reflect.Constructor findConstructor(java.lang.Class theClass,
                                                     java.lang.Class[] parameterTypes)
Finds a specific constructor of a class.
Parameters:
name - Name of the method to be retrieved.
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[] parametersTypes)
Finds a specific perform method from the method name.
Parameters:
object - Object for which the method is requested.
name - Name of the method to be retrieved.
parameterType - Method formal parameter type.