类 TransactionAttributeSourceEditor
- java.lang.Object
- java.beans.PropertyEditorSupport
- org.springframework.transaction.interceptor.TransactionAttributeSourceEditor
- 所有已实现的接口:
PropertyEditor
public class TransactionAttributeSourceEditor extends PropertyEditorSupport
Property editor that converts a String into aTransactionAttributeSource
. The transaction attribute string must be parseable by theTransactionAttributeEditor
in this package.Strings are in property syntax, with the form:
FQCN.methodName=<transaction attribute string>
For example:
com.mycompany.mycode.MyClass.myMethod=PROPAGATION_MANDATORY,ISOLATION_DEFAULT
NOTE: The specified class must be the one where the methods are defined; in case of implementing an interface, the interface class name.
Note: Will register all overloaded methods for a given name. Does not support explicit registration of certain overloaded methods. Supports "xxx*" mappings, e.g. "notify*" for "notify" and "notifyAll".
- 从以下版本开始:
- 26.04.2003
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
TransactionAttributeEditor
构造器概要
构造器 构造器 说明 TransactionAttributeSourceEditor()
构造器详细资料
TransactionAttributeSourceEditor
public TransactionAttributeSourceEditor()
方法详细资料
setAsText
public void setAsText(String text) throws IllegalArgumentException
- 指定者:
setAsText
在接口中PropertyEditor
- 覆盖:
setAsText
在类中PropertyEditorSupport
- 抛出:
IllegalArgumentException