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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Constructor<T>findConstructor(String... parameterTypes)Find ctor.MethodfindMethod(String name, String... parameterTypes)Find method.Constructor<T>getConstructor(String... parameterTypes)Get ctor; exact match wrt parameter types.FieldgetField(String name)Get bean's field.MethodgetGetter(String propertyName, Class<?> type)Get getter.MethodgetMethod(String name, String... parameterTypes)Get method; exact match wrt parameter types.MethodgetSetter(String propertyName, Class<?> type)Get setter.
-
-
-
Method Detail
-
getConstructor
Constructor<T> getConstructor(String... parameterTypes)
Get ctor; exact match wrt parameter types.- Parameters:
parameterTypes- the parameter types- Returns:
- the found ctor
-
findConstructor
Constructor<T> findConstructor(String... parameterTypes)
Find ctor. Loose parameter type matching; not all types need to be known.- Parameters:
parameterTypes- the parameter types- Returns:
- the found ctor
-
getMethod
Method getMethod(String name, String... parameterTypes)
Get method; exact match wrt parameter types.- Parameters:
name- the method nameparameterTypes- the parameter types- Returns:
- found method
-
findMethod
Method findMethod(String name, String... parameterTypes)
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
Method getGetter(String propertyName, Class<?> type)
Get getter.- Parameters:
propertyName- the getter propertyNametype- the type propertyName- Returns:
- the found getter
-
getSetter
Method getSetter(String propertyName, Class<?> type)
Get setter.- Parameters:
propertyName- the setter propertyNametype- the type propertyName- Returns:
- the found setter
-
-