Examples of EnvironmentFactory


Examples of com.google.apphosting.api.ApiProxy.EnvironmentFactory

      RemoteApiDelegate globalRemoteApiDelegate =
          createDelegate(finalOptions, client, originalDelegate);
      ApiProxy.setDelegate(globalRemoteApiDelegate);

      ApiProxy.setEnvironmentFactory(new EnvironmentFactory() {
        @Override
        public Environment newEnvironment() {
          return createEnv(finalOptions, client);
        }
      });
View Full Code Here

Examples of com.volantis.shared.environment.EnvironmentFactory

        // factor a NamespacePrefixTracker
        NamespacePrefixTracker namespaceTracker =
                wrapper.getNamespaceFactory().createPrefixTracker();

        // factor an EnvironmentInteractionTracker
        EnvironmentFactory environmentFactory =
                EnvironmentFactory.getDefaultInstance();

        EnvironmentInteractionTracker envTracker =
                environmentFactory.createInteractionTracker();

        // push the root EnvironmentInteraction onto the tracker
        if (environmentInteraction != null) {
            envTracker.pushEnvironmentInteraction(environmentInteraction);
        }
View Full Code Here

Examples of com.volantis.shared.environment.EnvironmentFactory

        // Create a NamespacePrefixTracker...
        NamespacePrefixTracker namespaceTracker =
                pipelineFactory.getNamespaceFactory().createPrefixTracker();

        // ...and an EnvironmentInteractionTracker.
        EnvironmentFactory environmentFactory =
                EnvironmentFactory.getDefaultInstance();
        EnvironmentInteractionTracker envTracker =
                environmentFactory.createInteractionTracker();

        //create a root environment interaction to encapsulate the request
        EnvironmentInteraction rootEnvironmentInteraction =
                createRootEnvironmentInteraction(
                        httpRequest, httpResponse);
View Full Code Here

Examples of com.volantis.shared.environment.EnvironmentFactory

        ExpressionFactory factory =
                xmlFactory.getExpressionFactory();

        // obtain the default EnvironmentFactory
        EnvironmentFactory environmentFactory =
                EnvironmentFactory.getDefaultInstance();

        // factor an EnvironmentInteractionTracker
        EnvironmentInteractionTracker envTracker =
                environmentFactory.createInteractionTracker();
       
        // obtain the rootEnvironmentInteraction and push onto the tracker
        EnvironmentInteraction envInteraction =
            environmentContext.createRootEnvironmentInteraction();
        envTracker.pushEnvironmentInteraction(envInteraction);
View Full Code Here

Examples of org.jbpm.env.EnvironmentFactory

  private static final long serialVersionUID = 1L;

  public Object construct(WireContext wireContext) {
    EnvironmentInterceptor environmentInterceptor = new EnvironmentInterceptor();
    Environment environment = wireContext.getEnvironment();
    EnvironmentFactory environmentFactory = environment.getEnvironmentFactory();
    environmentInterceptor.setEnvironmentFactory(environmentFactory);
    return environmentInterceptor;
  }
View Full Code Here

Examples of org.jbpm.env.EnvironmentFactory

* @author Tom Baeyens
*/
public class PvmDbSessionTest extends TestCase {
 
  public void testPvmDbSession() {
    EnvironmentFactory environmentFactory = EnvironmentFactory.parseResource(
        "org/jbpm/examples/ch10/jbpm.environment.xml"
    );
   
    Environment environment = environmentFactory.openEnvironment();
    try {
      PvmDbSession pvmDbSession = environment.get(PvmDbSession.class);
     
      ProcessDefinition processDefinition = ProcessFactory.build("persited process")
      .done();
View Full Code Here

Examples of org.jbpm.env.EnvironmentFactory

 
  JobExecutor jobExecutor;
 
  public void init() throws ServletException {
    String configurationResource = getInitParameter("jbpm.configuration.resource", "jbpm.cfg.xml");
    EnvironmentFactory environmentFactory = EnvironmentFactory.parseResource(configurationResource);
    Context applicationContext = (Context) environmentFactory;
    jobExecutor = applicationContext.get(JobExecutor.class);
    if (jobExecutor==null) {
      throw new PvmException("no job executor configured in resource "+configurationResource);
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.env.EnvironmentFactory

  public EnvironmentInterceptorBinding() {
    super("environment-interceptor");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    EnvironmentFactory environmentFactory = (EnvironmentFactory) parse.findObject(JbpmConfiguration.class);
    return new EnvironmentInterceptorDescriptor(environmentFactory);
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.env.EnvironmentFactory

 
  JobExecutor jobExecutor;
 
  public void init() throws ServletException {
    String configurationResource = getInitParameter("jbpm.configuration.resource", "jbpm.cfg.xml");
    EnvironmentFactory environmentFactory = (EnvironmentFactory) new Configuration().setResource(configurationResource).buildProcessEngine();
    jobExecutor = environmentFactory.get(JobExecutor.class);
    if (jobExecutor==null) {
      throw new JbpmException("no job executor configured in resource "+configurationResource);
    }
    jobExecutor.start();
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.env.EnvironmentFactory

 
  protected ConfigurationImpl configuration;
  protected Policy policy;
 
  public Object construct(WireContext wireContext) {
    EnvironmentFactory environmentFactory = (EnvironmentFactory) configuration.getProducedProcessEngine();
    EnvironmentInterceptor environmentInterceptor = new EnvironmentInterceptor();
    environmentInterceptor.setEnvironmentFactory(environmentFactory);
    if (policy!=null) {
      environmentInterceptor.setPolicy(policy);
    }
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.