java.lang.Object | |
↳ | org.springframework.cache.interceptor.CacheAspectSupport |
Known Direct Subclasses |
Base class for caching aspects, such as the CacheInterceptor
or an AspectJ aspect.
This enables the underlying Spring caching infrastructure to be used easily to implement an aspect for any aspect system.
Subclasses are responsible for calling methods in this class in the correct order.
If no caching name has been specified in the CacheOperationDefinition
,
the exposed name will be the fully-qualified class name + "." + method name
(by default).
Uses the Strategy design pattern. A CacheManager
implementation will perform the actual transaction management, and a
CacheDefinitionSource
is used for determining caching operation definitions.
A cache aspect is serializable if its CacheManager
and CacheDefinitionSource
are serializable.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CacheAspectSupport.CacheOperationContext |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
| |||||||||||
Set multiple cache definition sources which are used to find the cache
attributes.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convenience method to return a String representation of this Method
for use in logging.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
Set multiple cache definition sources which are used to find the cache attributes. Will build a CompositeCachingDefinitionSource for the given sources.
Exception |
---|
Convenience method to return a String representation of this Method for use in logging. Can be overridden in subclasses to provide a different identifier for the given method.
method | the method we're interested in |
---|---|
targetClass | class the method is on |