Package ubic.gemma.core.util
Class TextResourceToSetOfLinesFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<Set<String>>
-
- ubic.gemma.core.util.TextResourceToSetOfLinesFactoryBean
-
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<Set<String>>
,InitializingBean
public class TextResourceToSetOfLinesFactoryBean extends AbstractFactoryBean<Set<String>>
Converts a text resource into a set of lines.Lines starting with '#' are ignored.
- Author:
- poirigui
-
-
Field Summary
-
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
-
-
Constructor Summary
Constructors Constructor Description TextResourceToSetOfLinesFactoryBean(Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<String>
createInstance()
Class<?>
getObjectType()
-
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
-
-
-
Constructor Detail
-
TextResourceToSetOfLinesFactoryBean
public TextResourceToSetOfLinesFactoryBean(Resource resource)
-
-
Method Detail
-
createInstance
protected Set<String> createInstance() throws Exception
- Specified by:
createInstance
in classAbstractFactoryBean<Set<String>>
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceFactoryBean<Set<String>>
- Specified by:
getObjectType
in classAbstractFactoryBean<Set<String>>
-
-