org.springframework.integration.security.config
Class SecurityPropagatingBeanPostProcessor

java.lang.Object
  extended by org.springframework.integration.security.config.SecurityPropagatingBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.core.Ordered

public class SecurityPropagatingBeanPostProcessor
extends java.lang.Object
implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.core.Ordered

Post processes channels applying appropriate propagation behaviour. If default propagation is specified with a secure-channels tag, that will be applied in the absence of a secured tag for the channel. If the secured tag is specified, it will always determine propagation behaviour.

Author:
Jonas Partner

Field Summary
private  OrderedIncludeExcludeList includeExcludeList
           
private  SecurityContextPropagatingChannelInterceptor interceptor
           
private  org.apache.commons.logging.Log logger
           
protected static java.lang.String SECURITY_PROPAGATING_BEAN_POST_PROCESSOR_NAME
           
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
SecurityPropagatingBeanPostProcessor(OrderedIncludeExcludeList includeExcludeList)
           
 
Method Summary
 int getOrder()
           
 java.lang.Object postProcessAfterInitialization(java.lang.Object bean, java.lang.String beanName)
           
 java.lang.Object postProcessBeforeInitialization(java.lang.Object bean, java.lang.String beanName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECURITY_PROPAGATING_BEAN_POST_PROCESSOR_NAME

protected static final java.lang.String SECURITY_PROPAGATING_BEAN_POST_PROCESSOR_NAME

interceptor

private final SecurityContextPropagatingChannelInterceptor interceptor

logger

private final org.apache.commons.logging.Log logger

includeExcludeList

private final OrderedIncludeExcludeList includeExcludeList
Constructor Detail

SecurityPropagatingBeanPostProcessor

public SecurityPropagatingBeanPostProcessor(OrderedIncludeExcludeList includeExcludeList)
Method Detail

getOrder

public int getOrder()
Specified by:
getOrder in interface org.springframework.core.Ordered

postProcessBeforeInitialization

public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
                                                        java.lang.String beanName)
                                                 throws org.springframework.beans.BeansException
Specified by:
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException

postProcessAfterInitialization

public java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
                                                       java.lang.String beanName)
                                                throws org.springframework.beans.BeansException
Specified by:
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException