@Test public void testInitializableFactory() throws Exception { UimaContext context = UimaContextFactory.createUimaContext( InitializableClass.PARAM_BOOLEAN_PARAMETER, true); InitializableClass ic = InitializableFactory.create(context, InitializableClass.class); assertTrue(ic.booleanParameter); NotInitializableClass nic = InitializableFactory.create(context, NotInitializableClass.class); assertFalse(nic.booleanParameter); }
private InitializableFactory() { }
InitializableFactory { private InitializableFactory() { } }
InitializableFactory { private InitializableFactory() { } private  InitializableFactory(); }
InitializableFactory { private InitializableFactory() { } private  InitializableFactory(); static T create(UimaContext context, String className, Class<T> superClass); static Class<? extends T> getClass(String className, Class<T> superClass); static T create(UimaContext context, Class<? extends T> cls); static void initialize(Object object, UimaContext context); }
InitializableFactory { private InitializableFactory() { } private  InitializableFactory(); static T create(UimaContext context, String className, Class<T> superClass); static Class<? extends T> getClass(String className, Class<T> superClass); static T create(UimaContext context, Class<? extends T> cls); static void initialize(Object object, UimaContext context);  }