Package org.jboss.as.pojo.service
Interface BeanInfo<T>
- Type Parameters:
T- the exact bean type
- All Known Implementing Classes:
DefaultBeanInfo
public interface BeanInfo<T>
Bean info API.
It checks the whole bean's class hierarchy.
- Author:
- Ales Justin
-
Method Summary
Modifier and TypeMethodDescriptionfindConstructor(String... parameterTypes) Find ctor.findMethod(String name, String... parameterTypes) Find method.getConstructor(String... parameterTypes) Get ctor; exact match wrt parameter types.Get bean's field.Get getter.Get method; exact match wrt parameter types.Get setter.
-
Method Details
-
getConstructor
Get ctor; exact match wrt parameter types.- Parameters:
parameterTypes- the parameter types- Returns:
- the found ctor
-
findConstructor
Find ctor. Loose parameter type matching; not all types need to be known.- Parameters:
parameterTypes- the parameter types- Returns:
- the found ctor
-
getMethod
Get method; exact match wrt parameter types.- Parameters:
name- the method nameparameterTypes- the parameter types- Returns:
- found method
-
findMethod
Find method. Loose parameter type matching; not all types need to be known.- Parameters:
name- the method nameparameterTypes- the parameter types- Returns:
- found method
-
getGetter
Get getter.- Parameters:
propertyName- the getter propertyNametype- the type propertyName- Returns:
- the found getter
-
getSetter
Get setter.- Parameters:
propertyName- the setter propertyNametype- the type propertyName- Returns:
- the found setter
-
getField
Get bean's field.- Parameters:
name- the field name- Returns:
- the found field
-