OptionSetDefinitionDataLoader extends ResourceDataLoader { @SuppressWarnings("rawtypes") @Override public SimpleSequence load(Engine engine, List args) throws Exception { System.out.println("loading option set definitions..."); System.out.println("...args: " + args); final SimpleSequence result = super.load(engine, args); System.out.println("loaded " + result.size() + " option set definitions."); return result; } OptionSetDefinitionDataLoader(); @SuppressWarnings("rawtypes") @Override SimpleSequence load(Engine engine, List args); static final ResourceBasedDataLoader TEMPLATE_LOADER; }
@Test public void testOptionSetDefinition() throws Exception { final Object ls = new OptionSetDefinitionDataLoader().load(null, Collections.singletonList("/ls.xml")); System.out.println(ls); final Object uniq = new OptionSetDefinitionDataLoader().load(null, Collections.singletonList("/uniq.xml")); System.out.println(uniq); final Object cut = new OptionSetDefinitionDataLoader().load(null, Collections.singletonList("/cut.xml")); System.out.println(cut); final Object sort = new OptionSetDefinitionDataLoader().load(null, Collections.singletonList("/sort.xml")); System.out.println(sort); }