Examples of ExecutionContext


Examples of org.activiti.engine.impl.context.ExecutionContext

    }
  }
 
  protected ExecutionEntity getExecutionFromContext() {
    if(Context.getCommandContext() != null) {
      ExecutionContext executionContext = Context.getExecutionContext();
      if(executionContext != null) {
        return executionContext.getExecution();
      }
    }
    return null;
  }
View Full Code Here

Examples of org.apache.airavata.core.gfac.context.invocation.ExecutionContext

    private Instance instance;

    private String username;

    public EC2Provider(InvocationContext invocationContext) throws ProviderException {
        ExecutionContext execContext = invocationContext.getExecutionContext();
        OMElement omSecurityContextHeader = execContext.getSecurityContextHeader();

        ContextHeaderDocument document = null;
        try {
            document = ContextHeaderDocument.Factory.parse(omSecurityContextHeader.toStringWithConsume());
        } catch (XMLStreamException e) {
View Full Code Here

Examples of org.apache.aries.blueprint.di.ExecutionContext

      untrackServiceReferences();
    }

    public void injectBeanInstance(BeanMetadata bmd, Object o)
        throws IllegalArgumentException, ComponentDefinitionException {
        ExecutionContext origContext
            = ExecutionContext.Holder.setContext((ExecutionContext)getRepository());
        try {
            ComponentMetadata cmd = componentDefinitionRegistry.getComponentDefinition(bmd.getId());
            if (cmd == null || cmd != bmd) {
                throw new IllegalArgumentException(bmd.getId() + " not found in blueprint container");
View Full Code Here

Examples of org.apache.cassandra.cql.hooks.ExecutionContext

    public static CqlResult process(String queryString, ThriftClientState clientState)
    throws RequestValidationException, RequestExecutionException
    {
        logger.trace("CQL QUERY: {}", queryString);
        return processStatement(getStatement(queryString),
                                new ExecutionContext(clientState, queryString, Collections.<ByteBuffer>emptyList()));
    }
View Full Code Here

Examples of org.apache.cocoon.template.environment.ExecutionContext

        newObjectModel.putAt(ObjectModel.PARAMETERS_PATH, new ParametersMap(parameters));
        newObjectModel.put(ObjectModel.NAMESPACE, namespaces);
        XMLConsumer consumer = new AttributeAwareXMLConsumerImpl(new RedundantNamespacesFilter(this.xmlConsumer));
        newObjectModel.putAt("cocoon/consumer", consumer);
       
        Invoker.execute(consumer, this.newObjectModel, new ExecutionContext(this.definitions, this.scriptManager,
                this.manager), null, namespaces, startEvent, null);

        newObjectModel.cleanupLocalContext();
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.execute.ExecutionContext

  private ExecutionFactory getExecutionFactory()
  {
    if (ef == null)
    {
      ExecutionContext  ec;

      ec = (ExecutionContext)
          ContextService.getContext(ExecutionContext.CONTEXT_ID);
      ef = ec.getExecutionFactory();
    }
    return ef;
  }
View Full Code Here

Examples of org.apache.hive.ptest.execution.context.ExecutionContext

    executionContextConfiguration = mock(ExecutionContextConfiguration.class);
    executionContextProvider = mock(ExecutionContextProvider.class);
    ptest = mock(PTest.class);
    Set<Host> hosts = Sets.newHashSet();
    String baseDirPath = baseDir.getRoot().getAbsolutePath();
    executionContext = new ExecutionContext(executionContextProvider, hosts, baseDirPath, PRIVATE_KEY);
    profileProperties = new File(baseDirPath, PROFILE + ".properties");
    when(executionContextConfiguration.getProfileDirectory()).thenReturn(baseDirPath);
    when(executionContextConfiguration.getGlobalLogDirectory()).thenReturn(baseDirPath);
    when(executionContextProvider.createExecutionContext()).thenReturn(executionContext);
    Assert.assertTrue(profileProperties.toString(), profileProperties.createNewFile());
View Full Code Here

Examples of org.apache.jackrabbit.oak.query.ExecutionContext

    @Override
    public QueryEngine getQueryEngine() {
        return new QueryEngineImpl() {
            @Override
            protected ExecutionContext getExecutionContext() {
                return new ExecutionContext(rootTree.getNodeState(), rootTree, new PropertyIndexProvider());
            }
        };
    }
View Full Code Here

Examples of org.apache.jackrabbit.vault.util.console.ExecutionContext

        return "hello";
    }

    protected ExecutionContext getDefaultContext() {
        if (ctx == null) {
            ctx = new ExecutionContext(this);
            ctx.installCommand(new CmdHello());
        }
        return ctx;
    }
View Full Code Here

Examples of org.apache.joran.ExecutionContext

  public void doConfigure(URL url, LoggerRepository repository) {
    // This line is needed here because there is logging from inside this method.
    this.repository = repository;

    ExecutionContext ec = joranInterpreter.getExecutionContext();
    List errorList = ec.getErrorList();

    int result = XMLUtil.checkIfWellFormed(url, errorList);
    switch (result) {
    case XMLUtil.ILL_FORMED:
    case XMLUtil.UNRECOVERABLE_ERROR:
      errorList.add(
        new ErrorItem(
          "Problem parsing XML document. See previously reported errors. Abandoning all furhter processing."));
      return;
    }

    String errMsg;
    try {
      InputStream in = url.openStream();
      doConfigure(in, repository);
      in.close();
    } catch (IOException ioe) {
      errMsg = "Could not open [" + url + "].";
      getLogger(repository).error(errMsg, ioe);
      ec.addError(new ErrorItem(errMsg, ioe));
    }
  }
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.