Class SecurityEnabledAwareProcessor
- java.lang.Object
-
- org.craftercms.security.utils.spring.SecurityEnabledAwareProcessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
public class SecurityEnabledAwareProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
BeanPostProcessor
implementation that passes thesecurityEnabled
property to beans that implement theSecurityEnabledAware
interface.- Author:
- Alfonso Vásquez
-
-
Constructor Summary
Constructors Constructor Description SecurityEnabledAwareProcessor(boolean securityEnabled)
-
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)
-
-
-
Constructor Detail
-
SecurityEnabledAwareProcessor
@ConstructorProperties("securityEnabled") public SecurityEnabledAwareProcessor(boolean securityEnabled)
-
-
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
-
-