com.atlassian.confluence.compatibility.cache.spring
Class BucketAndAtlassianUserCacheManagerCompatibilityBeanPostProcessor
java.lang.Object
org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
com.atlassian.confluence.compatibility.cache.spring.BucketAndAtlassianUserCacheManagerCompatibilityBeanPostProcessor
- All Implemented Interfaces:
- org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
public class BucketAndAtlassianUserCacheManagerCompatibilityBeanPostProcessor
- extends org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
This post bean post processor will make transparent that injecting a CacheManager
into a
CacheManager
or a CacheManager
.
This is especially useful for autowiring plugins for example.
NOTE: it will not work with autowiring by type as the Spring container will not resolve a CacheManager
as
being assignanle to the other deprecated cache managers.
Field Summary |
protected org.apache.log4j.Logger |
log
|
Method Summary |
org.springframework.beans.PropertyValues |
postProcessPropertyValues(org.springframework.beans.PropertyValues propertyValues,
java.beans.PropertyDescriptor[] propertyDescriptors,
java.lang.Object bean,
java.lang.String beanName)
This will wrap instances of CacheManager into a CacheManagerAdapter before injecting into those
classes that require cache manager of either types CacheManager
or CacheManager . |
Methods inherited from class org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter |
determineConstructor, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, predictBeanType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.apache.log4j.Logger log
BucketAndAtlassianUserCacheManagerCompatibilityBeanPostProcessor
public BucketAndAtlassianUserCacheManagerCompatibilityBeanPostProcessor()
postProcessPropertyValues
public org.springframework.beans.PropertyValues postProcessPropertyValues(org.springframework.beans.PropertyValues propertyValues,
java.beans.PropertyDescriptor[] propertyDescriptors,
java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- This will wrap instances of
CacheManager
into a CacheManagerAdapter
before injecting into those
classes that require cache manager of either types CacheManager
or CacheManager
.
- Specified by:
postProcessPropertyValues
in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
- Overrides:
postProcessPropertyValues
in class org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
- Throws:
org.springframework.beans.BeansException
- See Also:
InstantiationAwareBeanPostProcessorAdapter.postProcessPropertyValues(PropertyValues, PropertyDescriptor[], Object, String)
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.