Package org.jboss.as.pojo.service
Class DefaultBeanInfo<T>
- java.lang.Object
-
- org.jboss.as.pojo.service.DefaultBeanInfo<T>
-
- All Implemented Interfaces:
BeanInfo<T>
public class DefaultBeanInfo<T> extends Object implements BeanInfo<T>
Default bean info.- Author:
- Ales Justin
-
-
Constructor Summary
Constructors Constructor Description DefaultBeanInfo(org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex index, Class<T> beanClass)
-
Method Summary
All Methods Instance Methods Concrete 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.protected <U> Ulookup(org.jboss.as.pojo.service.DefaultBeanInfo.Lookup<U> lookup, int start, int depth)Do lazy lookup.
-
-
-
Method Detail
-
lookup
protected <U> U lookup(org.jboss.as.pojo.service.DefaultBeanInfo.Lookup<U> lookup, int start, int depth)Do lazy lookup.- Parameters:
lookup- the lookupstart- the startdepth- the depth- Returns:
- reflection index result
-
getConstructor
public Constructor<T> getConstructor(String... parameterTypes)
Description copied from interface:BeanInfoGet ctor; exact match wrt parameter types.- Specified by:
getConstructorin interfaceBeanInfo<T>- Parameters:
parameterTypes- the parameter types- Returns:
- the found ctor
-
findConstructor
public Constructor<T> findConstructor(String... parameterTypes)
Description copied from interface:BeanInfoFind ctor. Loose parameter type matching; not all types need to be known.- Specified by:
findConstructorin interfaceBeanInfo<T>- Parameters:
parameterTypes- the parameter types- Returns:
- the found ctor
-
getField
public Field getField(String name)
Description copied from interface:BeanInfoGet bean's field.
-
getMethod
public Method getMethod(String name, String... parameterTypes)
Description copied from interface:BeanInfoGet method; exact match wrt parameter types.
-
findMethod
public Method findMethod(String name, String... parameterTypes)
Description copied from interface:BeanInfoFind method. Loose parameter type matching; not all types need to be known.- Specified by:
findMethodin interfaceBeanInfo<T>- Parameters:
name- the method nameparameterTypes- the parameter types- Returns:
- found method
-
getGetter
public Method getGetter(String propertyName, Class<?> type)
Description copied from interface:BeanInfoGet getter.
-
-