Examples of EnvironmentFactory


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.pdtextensions.core.launch.environment.EnvironmentFactory

 
  private void evaluate(IExtensionRegistry registry) {
    try {
      IConfigurationElement[] config = registry.getConfigurationElementsFor(LAUNCHER_ID);
      for (IConfigurationElement e : config) {
        final EnvironmentFactory factory = (EnvironmentFactory) e.createExecutableExtension("class");
        if (factory != null) {
          factories.put(e.getAttribute("id"), factory);
        }
      }
    } catch (Exception 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.