org.springframework.cache.config
Class CacheNamespaceHandler

java.lang.Object
  extended by org.springframework.beans.factory.xml.NamespaceHandlerSupport
      extended by 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

Field Summary
(package private) static java.lang.String CACHE_MANAGER_ATTRIBUTE
           
(package private) static java.lang.String DEFAULT_CACHE_MANAGER_BEAN_NAME
           
 
Constructor Summary
CacheNamespaceHandler()
           
 
Method Summary
(package private) static java.lang.String extractCacheManager(org.w3c.dom.Element element)
           
 void init()
          Invoked by the DefaultBeanDefinitionDocumentReader after construction but before any custom elements are parsed.
(package private) static BeanDefinition parseKeyGenerator(org.w3c.dom.Element element, BeanDefinition def)
           
 
Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport
decorate, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CacheNamespaceHandler

public CacheNamespaceHandler()
Method Detail

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)