org.springframework.transaction.interceptor
Class TransactionAttributeSourceEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--org.springframework.transaction.interceptor.TransactionAttributeSourceEditor

public class TransactionAttributeSourceEditor
extends PropertyEditorSupport

Property editor that can convert String into 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: 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, Juergen Hoeller
Version: $Id: TransactionAttributeSourceEditor.java,v 1.2 2003/08/21 15:45:50 jhoeller Exp $
Since: 26-Apr-2003
See Also: TransactionAttributeEditor

Method Summary
 voidsetAsText(String s)
           

Methods inherited from class java.beans.PropertyEditorSupport
firePropertyChange, isPaintable, supportsCustomEditor, getCustomEditor, addPropertyChangeListener, removePropertyChangeListener, getValue, setValue, getAsText, getJavaInitializationString, getTags, paintValue

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals, toString

Method Detail

setAsText

public void setAsText(String s)
throws java.lang.IllegalArgumentException