Class SimpleValueDataExtractor

  • All Implemented Interfaces:
    DataExtractor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    public class SimpleValueDataExtractor
    extends AbstractDataExtractor
    An extractor that supports all values and does not conversion. This implementation can be used as a base class, although there is little abstraction necessary for the converters in general.
    Since:
    3.2
    Author:
    Derek Hulley
    • Constructor Detail

      • SimpleValueDataExtractor

        public SimpleValueDataExtractor()
    • Method Detail

      • isSupported

        public boolean isSupported​(java.io.Serializable data)
        Description copied from interface: DataExtractor
        Determines if the extractor will be able to pull any data from the given value.
        Parameters:
        data - the data that might be useful to this extractor (could be null)
        Returns:
        Returns true always
      • extractData

        public java.io.Serializable extractData​(java.io.Serializable in)
                                         throws java.lang.Throwable
        Just returns the value unchanged
        Parameters:
        in - the source data
        Returns:
        the extracted data including null
        Throws:
        java.lang.Throwable - All errors will be handled by the calling framework