Example usage for org.springframework.transaction.interceptor NoRollbackRuleAttribute NoRollbackRuleAttribute

List of usage examples for org.springframework.transaction.interceptor NoRollbackRuleAttribute NoRollbackRuleAttribute

Introduction

In this page you can find the example usage for org.springframework.transaction.interceptor NoRollbackRuleAttribute NoRollbackRuleAttribute.

Prototype

public NoRollbackRuleAttribute(String exceptionName) 

Source Link

Document

Create a new instance of the NoRollbackRuleAttribute class for the supplied exceptionName .

Usage

From source file:eap.config.TxAdviceBeanDefinitionParser.java

private void addNoRollbackRuleAttributesTo(List<RollbackRuleAttribute> rollbackRules,
        String noRollbackForValue) {
    String[] exceptionTypeNames = StringUtils.commaDelimitedListToStringArray(noRollbackForValue);
    for (String typeName : exceptionTypeNames) {
        rollbackRules.add(new NoRollbackRuleAttribute(StringUtils.trimWhitespace(typeName)));
    }/*from   ww  w .  j  a  v  a  2 s  .c  o  m*/
}