|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.parser.PojoMetadata
public class PojoMetadata
Manipulation Metadata allows getting information about the implementation class
without using reflection such as implemented interfaces, super class,
methods and fields.
This method allows getting object to register FieldInterceptor
and
MethodInterceptor
.
Constructor Summary | |
---|---|
PojoMetadata(Element metadata)
Creates Pojo metadata. |
Method Summary | |
---|---|
FieldMetadata |
getField(String name)
Gets the field metadata for the given name. |
FieldMetadata |
getField(String name,
String type)
Gets the field metadata for the given name and type. |
FieldMetadata[] |
getFields()
|
String[] |
getInterfaces()
|
MethodMetadata |
getMethod(String name)
Gets the MethodMetadata corresponding to the method (contained in the implementation class) with the given name. |
MethodMetadata |
getMethod(String name,
String[] types)
Gets the MethodMetadata corresponding to the method (contained in the implementation class) to given name and argument types. |
MethodMetadata[] |
getMethods()
|
MethodMetadata[] |
getMethods(String name)
Gets the MethodMetadata list corresponding to the method (contained in the implementation class) to given name. |
String |
getSuperClass()
|
boolean |
isInterfaceImplemented(String itf)
Checks if the given interface name is implemented. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PojoMetadata(Element metadata) throws ConfigurationException
metadata
- the component type metadata
ConfigurationException
- if the manipulation metadata cannot be foundMethod Detail |
---|
public MethodMetadata[] getMethods()
public FieldMetadata[] getFields()
public String[] getInterfaces()
public FieldMetadata getField(String name)
name
- : the name of the field
null
if not foundpublic FieldMetadata getField(String name, String type)
name
- : the name of the fieldtype
- : the type of the field
null
if not foundpublic boolean isInterfaceImplemented(String itf)
itf
- the interface to check.
true
if the implementation class implements
the given interface.public MethodMetadata getMethod(String name)
name
- the name of the method to find.
null
if not foundpublic MethodMetadata[] getMethods(String name)
name
- the name of the method to look for.
public MethodMetadata getMethod(String name, String[] types)
name
- the name of the method to look for.types
- the array of the argument types of the method
null
if not foundpublic String getSuperClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |