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 the securityEnabled
property to beans that
implement the SecurityEnabledAware
interface.- Author:
- Alfonso Vásquez
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpostProcessAfterInitialization
(Object bean, String beanName) postProcessBeforeInitialization
(Object bean, String beanName)
-
Constructor Details
-
SecurityEnabledAwareProcessor
@ConstructorProperties("securityEnabled") public SecurityEnabledAwareProcessor(boolean securityEnabled)
-
-
Method Details
-
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
-