Class NodeProcessingAttachingBeanPostProcessor
- java.lang.Object
-
- net.shibboleth.idp.profile.spring.relyingparty.metadata.impl.NodeProcessingAttachingBeanPostProcessor
-
- All Implemented Interfaces:
BeanPostProcessor,Ordered
public class NodeProcessingAttachingBeanPostProcessor extends Object implements BeanPostProcessor, Ordered
ABeanPostProcessorforMetadataResolverbeans that ensures aNodeProcessingMetadataFiltercontaining a set of defaultMetadataNodeProcessorplugins is attached.This is done to ensure that other components function correctly, such as the PKIX trust engine and predicates that depend on group information.
The constructor will auto-wire all free-standing beans, but the property setter can override these.
-
-
Field Summary
Fields Modifier and Type Field Description private List<MetadataNodeProcessor>nodeProcessorsThe processors to install.-
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
-
Constructor Summary
Constructors Constructor Description NodeProcessingAttachingBeanPostProcessor(Collection<MetadataNodeProcessor> processors)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()ObjectpostProcessAfterInitialization(Object bean, String beanName)ObjectpostProcessBeforeInitialization(Object bean, String beanName)voidsetNodeProcessors(Collection<MetadataNodeProcessor> processors)Set theMetadataNodeProcessorinstances to auto-attach instead of the auto-wired set.
-
-
-
Field Detail
-
nodeProcessors
@Nonnull @NonnullElements private List<MetadataNodeProcessor> nodeProcessors
The processors to install.
-
-
Constructor Detail
-
NodeProcessingAttachingBeanPostProcessor
@Autowired public NodeProcessingAttachingBeanPostProcessor(@Nullable @NonnullElements Collection<MetadataNodeProcessor> processors)
Constructor.- Parameters:
processors- auto-wired processors to install
-
-
Method Detail
-
setNodeProcessors
public void setNodeProcessors(@Nullable @NonnullElements Collection<MetadataNodeProcessor> processors)
Set theMetadataNodeProcessorinstances to auto-attach instead of the auto-wired set.- Parameters:
processors- processors to auto-attach- Since:
- 4.1.0
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName)
- Specified by:
postProcessBeforeInitializationin interfaceBeanPostProcessor
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName)
- Specified by:
postProcessAfterInitializationin interfaceBeanPostProcessor
-
-