Package org.openiam.cache
Class CacheBeanPostProcessor
- java.lang.Object
-
- org.openiam.cache.CacheBeanPostProcessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
public class CacheBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
Ensures that no developer caches Hibernate Entity objects using @Cacheable fixes AM-851 - Custom @Cacheable annotations should *never* cache Entity objects- Author:
- lbornova
-
-
Constructor Summary
Constructors Constructor Description CacheBeanPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
postProcessAfterInitialization(Object bean, String beanName)
Object
postProcessBeforeInitialization(Object bean, String beanName)
-
-
-
Method Detail
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessBeforeInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessAfterInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-
-