Skip to content
Snippets Groups Projects
Commit 344dd8b5 authored by tpylak's avatar tpylak
Browse files

SE-287 easier way to parse java beans from tsv with static columns

SVN: 17332
parent fa709729
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,23 @@ public class TabFileLoader<T>
private final IParserObjectFactoryFactory<T> factory;
/**
* Creates a new instance based on the factory which uses only bean annotations.
*/
public TabFileLoader(final Class<T> beanClass)
{
this.factory = new IParserObjectFactoryFactory<T>()
{
public IParserObjectFactory<T> createFactory(IPropertyMapper propertyMapper)
throws ParserException
{
return new AbstractParserObjectFactory<T>(beanClass, propertyMapper)
{
};
}
};
}
/**
* Creates a new instance based on the specified factory.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment