org.springframework.transaction.interceptor
Class TransactionAttributeSourceEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.transaction.interceptor.TransactionAttributeSourceEditor
- All Implemented Interfaces:
- java.beans.PropertyEditor
- public class TransactionAttributeSourceEditor
- extends java.beans.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: 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".
- Since:
- 26-Apr-2003
- Version:
- $Id: TransactionAttributeSourceEditor.java,v 1.4 2004/03/18 02:46:05 trisberg Exp $
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
TransactionAttributeEditor
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
Method Summary |
void |
setAsText(java.lang.String s)
|
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
TransactionAttributeSourceEditor
public TransactionAttributeSourceEditor()
setAsText
public void setAsText(java.lang.String s)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
Copyright (C) 2003-2004 The Spring Framework Project.