Package net.shibboleth.spring.metadata
Class NodeProcessingAttachingBeanPostProcessor
java.lang.Object
net.shibboleth.spring.metadata.NodeProcessingAttachingBeanPostProcessor
- All Implemented Interfaces:
BeanPostProcessor,Ordered
public class NodeProcessingAttachingBeanPostProcessor
extends Object
implements BeanPostProcessor, Ordered
A
BeanPostProcessor for MetadataResolver beans that ensures a NodeProcessingMetadataFilter
containing a set of default MetadataNodeProcessor plugins 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
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()postProcessAfterInitialization(Object bean, String beanName) postProcessBeforeInitialization(Object bean, String beanName) voidsetNodeProcessors(Collection<MetadataNodeProcessor> processors) Set theMetadataNodeProcessorinstances to auto-attach instead of the auto-wired set.
-
Field Details
-
nodeProcessors
The processors to install.
-
-
Constructor Details
-
NodeProcessingAttachingBeanPostProcessor
@Autowired public NodeProcessingAttachingBeanPostProcessor(@Nullable Collection<MetadataNodeProcessor> processors) Constructor.- Parameters:
processors- auto-wired processors to install
-
-
Method Details
-
setNodeProcessors
Set theMetadataNodeProcessorinstances to auto-attach instead of the auto-wired set.- Parameters:
processors- processors to auto-attach- Since:
- 4.1.0
-
getOrder
public int getOrder() -
postProcessBeforeInitialization
@Nonnull public Object postProcessBeforeInitialization(@Nonnull Object bean, @Nonnull String beanName) - Specified by:
postProcessBeforeInitializationin interfaceBeanPostProcessor
-
postProcessAfterInitialization
@Nonnull public Object postProcessAfterInitialization(@Nonnull Object bean, @Nonnull String beanName) - Specified by:
postProcessAfterInitializationin interfaceBeanPostProcessor
-