use of org.talend.components.api.component.runtime.JarRuntimeInfo in project components by Talend.
the class FixedFlowInputDefinition method getRuntimeInfo.
@Override
public RuntimeInfo getRuntimeInfo(ExecutionEngine engine, ComponentProperties properties, ConnectorTopology connectorTopology) {
assertEngineCompatibility(engine);
assertConnectorTopologyCompatibility(connectorTopology);
try {
return new JarRuntimeInfo(new URL(LocalIOComponentFamilyDefinition.MAVEN_DEFAULT_RUNTIME_URI), DependenciesReader.computeDependenciesFilePath(LocalIOComponentFamilyDefinition.MAVEN_GROUP_ID, LocalIOComponentFamilyDefinition.MAVEN_DEFAULT_RUNTIME_ARTIFACT_ID), RUNTIME);
} catch (MalformedURLException e) {
throw new ComponentException(e);
}
}
use of org.talend.components.api.component.runtime.JarRuntimeInfo in project components by Talend.
the class NetSuiteConnectionDefinitionTest method testGetRuntimeInfo.
@Test
public void testGetRuntimeInfo() {
NetSuiteConnectionProperties properties = new NetSuiteConnectionProperties("test");
properties.initForRuntime();
RuntimeInfo runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.DI, properties, ConnectorTopology.NONE);
assertNotNull(runtimeInfo);
assertThat(runtimeInfo, instanceOf(JarRuntimeInfo.class));
JarRuntimeInfo jarRuntimeInfo = (JarRuntimeInfo) runtimeInfo;
assertThat(jarRuntimeInfo.getRuntimeClassName(), endsWith(".NetSuiteSourceOrSinkImpl"));
}
use of org.talend.components.api.component.runtime.JarRuntimeInfo in project components by Talend.
the class NetSuiteOutputDefinitionTest method testRuntimeInfoForIncoming.
@Test
public void testRuntimeInfoForIncoming() {
NetSuiteOutputProperties properties = new NetSuiteOutputProperties("test");
properties.initForRuntime();
RuntimeInfo runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.DI, properties, ConnectorTopology.INCOMING);
assertNotNull(runtimeInfo);
assertThat(runtimeInfo, instanceOf(JarRuntimeInfo.class));
JarRuntimeInfo jarRuntimeInfo = (JarRuntimeInfo) runtimeInfo;
assertThat(jarRuntimeInfo.getRuntimeClassName(), endsWith(".NetSuiteSinkImpl"));
}
use of org.talend.components.api.component.runtime.JarRuntimeInfo in project components by Talend.
the class NetSuiteOutputDefinitionTest method testRuntimeInfoForIncomingAndOutgoing.
@Test
public void testRuntimeInfoForIncomingAndOutgoing() {
NetSuiteOutputProperties properties = new NetSuiteOutputProperties("test");
properties.initForRuntime();
RuntimeInfo runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.DI, properties, ConnectorTopology.INCOMING_AND_OUTGOING);
assertNotNull(runtimeInfo);
assertThat(runtimeInfo, instanceOf(JarRuntimeInfo.class));
JarRuntimeInfo jarRuntimeInfo = (JarRuntimeInfo) runtimeInfo;
assertThat(jarRuntimeInfo.getRuntimeClassName(), endsWith(".NetSuiteSinkImpl"));
}
use of org.talend.components.api.component.runtime.JarRuntimeInfo in project components by Talend.
the class FieldSelectorDefinition method getRuntimeInfo.
@Override
public RuntimeInfo getRuntimeInfo(ExecutionEngine engine, ComponentProperties properties, ConnectorTopology connectorTopology) {
assertEngineCompatibility(engine);
assertConnectorTopologyCompatibility(connectorTopology);
try {
return new JarRuntimeInfo(new URL("mvn:org.talend.components/processing-runtime"), DependenciesReader.computeDependenciesFilePath(ProcessingFamilyDefinition.MAVEN_GROUP_ID, ProcessingFamilyDefinition.MAVEN_ARTIFACT_ID), "org.talend.components.processing.runtime.fieldselector.FieldSelectorRuntime");
} catch (MalformedURLException e) {
throw new ComponentException(e);
}
}
Aggregations