com.interface21.transaction.interceptor
Class TransactionAttributeSourceEditor
java.lang.Object
|
+--java.beans.PropertyEditorSupport
|
+--com.interface21.transaction.interceptor.TransactionAttributeSourceEditor
- All Implemented Interfaces:
- java.beans.PropertyEditor
- public class TransactionAttributeSourceEditor
- extends java.beans.PropertyEditorSupport
PropertyEditor implementation. Can convert from Strings to TransactionAttributeSource.
Strings are in property syntax, with the form
FQN.methodName=<transaction attribute string>
For example:
com.mycompany.mycode.MyClass.myMethod=PROPAGATION_MANDATORY,ISOLATION_DEFAULT
The transaction attribute string must be parseable by the
TransactionAttributePropertyEditor in this package.
TODO address method overloading and * or regexp syntax
- Since:
- 26-Apr-2003
- Version:
- $Id: TransactionAttributeSourceEditor.java,v 1.1 2003/06/13 13:40:39 jhoeller Exp $
- Author:
- Rod Johnson
- See Also:
TransactionAttributeSourceEditor
|
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
| 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
- Overrides:
setAsText in class java.beans.PropertyEditorSupport
- See Also:
PropertyEditor.setAsText(java.lang.String)
transactionAttributePropertyEditor
protected TransactionAttributeEditor transactionAttributePropertyEditor()
- Getting a TransactionAttributePropertyEditor is in a separate
protected method to allow for effective unit testing.
- Returns:
- TransactionAttributePropertyEditor
Rod Johnson and Spring contributors 2001-2003.