org.springframework.cache.config
Class CacheNamespaceHandler
java.lang.Object
org.springframework.beans.factory.xml.NamespaceHandlerSupport
org.springframework.cache.config.CacheNamespaceHandler
- All Implemented Interfaces:
- NamespaceHandler
public class CacheNamespaceHandler
- extends NamespaceHandlerSupport
NamespaceHandler
allowing for the configuration of declarative
cache management using either XML or using annotations.
This namespace handler is the central piece of functionality in the
Spring cache management facilities.
- Since:
- 3.1
- Author:
- Costin Leau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_MANAGER_ATTRIBUTE
static final java.lang.String CACHE_MANAGER_ATTRIBUTE
- See Also:
- Constant Field Values
DEFAULT_CACHE_MANAGER_BEAN_NAME
static final java.lang.String DEFAULT_CACHE_MANAGER_BEAN_NAME
- See Also:
- Constant Field Values
CacheNamespaceHandler
public CacheNamespaceHandler()
extractCacheManager
static java.lang.String extractCacheManager(org.w3c.dom.Element element)
parseKeyGenerator
static BeanDefinition parseKeyGenerator(org.w3c.dom.Element element,
BeanDefinition def)
init
public void init()
- Description copied from interface:
NamespaceHandler
- Invoked by the
DefaultBeanDefinitionDocumentReader
after
construction but before any custom elements are parsed.
- See Also:
NamespaceHandlerSupport.registerBeanDefinitionParser(String, BeanDefinitionParser)