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 Details

    • DefaultBeanInfo

      public DefaultBeanInfo(org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex index, Class<T> beanClass)
  • Method Details

    • lookup

      protected <U> U lookup(org.jboss.as.pojo.service.DefaultBeanInfo.Lookup<U> lookup, int start, int depth)
      Do lazy lookup.
      Parameters:
      lookup - the lookup
      start - the start
      depth - the depth
      Returns:
      reflection index result
    • getConstructor

      public Constructor<T> getConstructor(String... parameterTypes)
      Description copied from interface: BeanInfo
      Get ctor; exact match wrt parameter types.
      Specified by:
      getConstructor in interface BeanInfo<T>
      Parameters:
      parameterTypes - the parameter types
      Returns:
      the found ctor
    • findConstructor

      public Constructor<T> findConstructor(String... parameterTypes)
      Description copied from interface: BeanInfo
      Find ctor. Loose parameter type matching; not all types need to be known.
      Specified by:
      findConstructor in interface BeanInfo<T>
      Parameters:
      parameterTypes - the parameter types
      Returns:
      the found ctor
    • getField

      public Field getField(String name)
      Description copied from interface: BeanInfo
      Get bean's field.
      Specified by:
      getField in interface BeanInfo<T>
      Parameters:
      name - the field name
      Returns:
      the found field
    • getMethod

      public Method getMethod(String name, String... parameterTypes)
      Description copied from interface: BeanInfo
      Get method; exact match wrt parameter types.
      Specified by:
      getMethod in interface BeanInfo<T>
      Parameters:
      name - the method name
      parameterTypes - the parameter types
      Returns:
      found method
    • findMethod

      public Method findMethod(String name, String... parameterTypes)
      Description copied from interface: BeanInfo
      Find method. Loose parameter type matching; not all types need to be known.
      Specified by:
      findMethod in interface BeanInfo<T>
      Parameters:
      name - the method name
      parameterTypes - the parameter types
      Returns:
      found method
    • getGetter

      public Method getGetter(String propertyName, Class<?> type)
      Description copied from interface: BeanInfo
      Get getter.
      Specified by:
      getGetter in interface BeanInfo<T>
      Parameters:
      propertyName - the getter propertyName
      type - the type propertyName
      Returns:
      the found getter
    • getSetter

      public Method getSetter(String propertyName, Class<?> type)
      Description copied from interface: BeanInfo
      Get setter.
      Specified by:
      getSetter in interface BeanInfo<T>
      Parameters:
      propertyName - the setter propertyName
      type - the type propertyName
      Returns:
      the found setter