java.lang.Object | |
↳ | org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource |
Simple TransactionAttributeSource
implementation that
allows attributes to be stored per method in a Map.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger | Logger available to subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add an attribute for a transactional method.
| |||||||||||
Add an attribute for a transactional method.
| |||||||||||
Add an attribute for a transactional method.
| |||||||||||
Eagerly initializes the specified
"methodMap" , if any. | |||||||||||
Return the transaction attribute for this method.
| |||||||||||
Callback that supplies the bean
class loader to
a bean instance. | |||||||||||
Set a name/attribute map, consisting of "FQCN.method" method names
(e.g.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialize the specified
"methodMap" , if any. | |||||||||||
Return if the given method name matches the mapped name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanClassLoaderAware
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.transaction.interceptor.TransactionAttributeSource
|
Logger available to subclasses
Add an attribute for a transactional method.
method | the method |
---|---|
attr | attribute associated with the method |
Add an attribute for a transactional method. Method names can end or start with "*" for matching multiple methods.
clazz | target interface or class |
---|---|
mappedName | mapped method name |
attr | attribute associated with the method |
Add an attribute for a transactional method.
Method names can end or start with "*" for matching multiple methods.
name | class and method name, separated by a dot |
---|---|
attr | attribute associated with the method |
IllegalArgumentException | in case of an invalid name |
---|
Return the transaction attribute for this method. Return null if the method is non-transactional.
method | method |
---|---|
targetClass | target class. May be null , in which
case the declaring class of the method must be used. |
null
if none found
Callback that supplies the bean class loader
to
a bean instance.
Invoked after the population of normal bean properties but
before an initialization callback such as
InitializingBean's
afterPropertiesSet()
method or a custom init-method.
beanClassLoader | the owning class loader; may be null in
which case a default ClassLoader must be used, for example
the ClassLoader obtained via
getDefaultClassLoader()
|
---|
Set a name/attribute map, consisting of "FQCN.method" method names
(e.g. "com.mycompany.mycode.MyClass.myMethod") and
TransactionAttribute
instances (or Strings to be converted
to TransactionAttribute
instances).
Intended for configuration via setter injection, typically within
a Spring bean factory. Relies on afterPropertiesSet()
being called afterwards.
methodMap | said Map from method name to attribute value |
---|
Initialize the specified "methodMap"
, if any.
methodMap | Map from method names to TransactionAttribute instances |
---|
Return if the given method name matches the mapped name.
The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality.
methodName | the method name of the class |
---|---|
mappedName | the name in the descriptor |