Package org.jbpm.pvm.internal.tx

Examples of org.jbpm.pvm.internal.tx.SpringTransactionInterceptor


  public SpringTransactionInterceptorBinding() {
    super("spring-transaction-interceptor");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    SpringTransactionInterceptor springTransactionInterceptor = new SpringTransactionInterceptor();
   
    Boolean useCurrent = XmlUtil.attributeBoolean(element, "current", false, parse);
    if (useCurrent!=null) {
      // set it accordingly
      springTransactionInterceptor.setUseCurrent(useCurrent);
    }
   
    return new ProvidedObjectDescriptor(springTransactionInterceptor);
  }
View Full Code Here


  public SpringTransactionInterceptorBinding() {
    super("spring-transaction-interceptor");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    SpringTransactionInterceptor springTransactionInterceptor = new SpringTransactionInterceptor();

    if ( element.hasAttribute("policy")
         && ("requiresNew".equals(element.getAttribute("policy")))
       ) {
      springTransactionInterceptor.setPolicy(Policy.REQUIRES_NEW);
    }

    String transactionManagerName = XmlUtil.attribute(element, "transaction-manager");
    if (transactionManagerName != null) {
      springTransactionInterceptor.setTransactionManagerName(transactionManagerName);
    }

    return new ProvidedObjectDescriptor(springTransactionInterceptor);
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.tx.SpringTransactionInterceptor

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