spring-framework / org.springframework.transaction.interceptor / TransactionAttributeSourceEditor

TransactionAttributeSourceEditor

open class TransactionAttributeSourceEditor : PropertyEditorSupport

Property editor that converts a String into a TransactionAttributeSource. The transaction attribute string must be parseable by the TransactionAttributeEditor 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".

Author
Rod Johnson

Author
Juergen Hoeller

Since
26.04.2003

See Also
TransactionAttributeEditor

Constructors

<init>

TransactionAttributeSourceEditor()

Property editor that converts a String into a TransactionAttributeSource. The transaction attribute string must be parseable by the TransactionAttributeEditor in this package.

Strings are in property syntax, with the form: FQCN.methodName=&lt;transaction attribute string&gt;

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".

Functions

setAsText

open fun setAsText(text: String): Unit