Examples of EnvironmentInterceptorDescriptor


Examples of org.jbpm.pvm.internal.wire.descriptor.EnvironmentInterceptorDescriptor

    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.wire.descriptor.EnvironmentInterceptorDescriptor

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

  public Object parse(Element element, Parse parse, Parser parser) {
    EnvironmentInterceptorDescriptor environmentInterceptorDescriptor = new EnvironmentInterceptorDescriptor();

    ConfigurationImpl configuration = (ConfigurationImpl) parse.contextStackFind(ConfigurationImpl.class);
    environmentInterceptorDescriptor.setConfiguration(configuration);
   
    if ( element.hasAttribute("policy")
         && ("requiresNew".equals(element.getAttribute("policy")))
       ) {
      environmentInterceptorDescriptor.setPolicy(Policy.REQUIRES_NEW);
    }
   
    return environmentInterceptorDescriptor;
  }
View Full Code Here

Examples of org.jbpm.wire.descriptor.EnvironmentInterceptorDescriptor

* @author Tom Baeyens
*/
public class EnvironmentInterceptorBinding implements Binding {

  public Object parse(Element element, Parse parse, Parser parser) {
    return new EnvironmentInterceptorDescriptor();
  }
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.