Search in sources :

Example 1 with JavaConstructService

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());
}
Also used : TargetValueConverter(io.atlasmap.java.core.TargetValueConverter) ClassInspectionService(io.atlasmap.java.inspect.ClassInspectionService) JavaConstructService(io.atlasmap.java.inspect.JavaConstructService)

Example 2 with JavaConstructService

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());
}
Also used : JavaConstructService(io.atlasmap.java.inspect.JavaConstructService) Test(org.junit.Test)

Aggregations

JavaConstructService (io.atlasmap.java.inspect.JavaConstructService)2 TargetValueConverter (io.atlasmap.java.core.TargetValueConverter)1 ClassInspectionService (io.atlasmap.java.inspect.ClassInspectionService)1 Test (org.junit.Test)1