use of io.atlasmap.java.inspect.JavaConstructService in project atlasmap by atlasmap.
the class JavaModule method init.
@Override
public void init() {
// TODO support non-flat class loader
this.classLoader = Thread.currentThread().getContextClassLoader();
javaInspectionService = new ClassInspectionService();
javaInspectionService.setConversionService(getConversionService());
setJavaInspectionService(javaInspectionService);
javaConstructService = new JavaConstructService();
javaConstructService.setConversionService(getConversionService());
setJavaConstructService(javaConstructService);
targetValueConverter = new TargetValueConverter(classLoader, getConversionService());
}
use of io.atlasmap.java.inspect.JavaConstructService in project atlasmap by atlasmap.
the class JavaModuleTest method testGetSetJavaConstructService.
@Test
public void testGetSetJavaConstructService() {
JavaConstructService jcs = new JavaConstructService();
assertNotNull(module);
assertNull(module.getJavaConstructService());
module.setJavaConstructService(jcs);
assertNotNull(module.getJavaConstructService());
assertSame(jcs, module.getJavaConstructService());
}
Aggregations