Examples of ExecutionFactory


Examples of org.sonatype.maven.polyglot.groovy.builder.factory.ExecutionFactory


        registerFactory(new ReportingFactory());
        registerFactoriesFor(Reporting.class);
       
        registerFactory(new ExecutionFactory());
        registerFactoriesFor(PluginExecution.class);

        registerFactory(new ModelFactory());
        registerFactoriesFor(Model.class);
View Full Code Here

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
Copyright © 2018 www.massapi.com. 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.