Package org.teiid.translator

Examples of org.teiid.translator.ExecutionFactory


      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);
View Full Code Here

TOP

Related Classes of org.teiid.translator.ExecutionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.