Class BeanWrapperFieldExtractor<T>

  • All Implemented Interfaces:
    FieldExtractor<T>, org.springframework.beans.factory.InitializingBean

    public class BeanWrapperFieldExtractor<T>
    extends java.lang.Object
    implements FieldExtractor<T>, org.springframework.beans.factory.InitializingBean
    This is a field extractor for a java bean. Given an array of property names, it will reflectively call getters on the item and return an array of all the values.
    Since:
    2.0
    Author:
    Dan Garrette
    • Constructor Detail

      • BeanWrapperFieldExtractor

        public BeanWrapperFieldExtractor()
    • Method Detail

      • setNames

        public void setNames​(java.lang.String[] names)
        Parameters:
        names - field names to be extracted by the extract(Object) method.
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean