buildTranslatorProperties(superClass, props);
}
}
public static ExecutionFactory buildExecutionFactory(Translator data) throws DeploymentException {
ExecutionFactory executionFactory;
try {
String executionClass = data.getPropertyValue(TranslatorMetaData.EXECUTION_FACTORY_CLASS);
Object o = ReflectionHelper.create(executionClass, null, Thread.currentThread().getContextClassLoader());
if(!(o instanceof ExecutionFactory)) {
throw new DeploymentException(RuntimePlugin.Util.getString("invalid_class", executionClass));//$NON-NLS-1$
}
executionFactory = (ExecutionFactory)o;
injectProperties(executionFactory, data);
executionFactory.start();
return executionFactory;
} catch (TeiidException e) {
throw new DeploymentException(e);
} catch (InvocationTargetException e) {
throw new DeploymentException(e);