Class TextResourceToSetOfLinesFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<Set<String>>, org.springframework.beans.factory.InitializingBean

    public class TextResourceToSetOfLinesFactoryBean
    extends org.springframework.beans.factory.config.AbstractFactoryBean<Set<String>>
    Converts a text resource into a set of lines.

    Lines starting with '#' are ignored.

    Author:
    poirigui
    • Constructor Detail

      • TextResourceToSetOfLinesFactoryBean

        public TextResourceToSetOfLinesFactoryBean​(org.springframework.core.io.Resource resource)
    • Method Detail

      • createInstance

        protected Set<String> createInstance()
                                      throws Exception
        Specified by:
        createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<Set<String>>
        Throws:
        Exception
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<Set<String>>
        Specified by:
        getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<Set<String>>