Class SpringAwareMessageDecoderFactory
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.idp.saml.profile.impl.SpringAwareMessageDecoderFactory
- All Implemented Interfaces:
Function<String,
,MessageDecoder> Component
,DestructableComponent
,InitializableComponent
,Aware
,ApplicationContextAware
@ThreadSafeAfterInit
public class SpringAwareMessageDecoderFactory
extends AbstractInitializableComponent
implements Function<String,MessageDecoder>, ApplicationContextAware
A function that returns the correct
MessageDecoder
to use based on a simple map of
strings to bean IDs.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ApplicationContext
Application context injected by surroundings.Map of strings to bean IDs.private final org.slf4j.Logger
Class logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setApplicationContext
(ApplicationContext context) void
setBeanMappings
(Map<String, String> mappings) Set mappings of strings to names ofMessageDecoder
beans.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
applicationContext
Application context injected by surroundings. -
beanMappings
Map of strings to bean IDs.
-
-
Constructor Details
-
SpringAwareMessageDecoderFactory
public SpringAwareMessageDecoderFactory()Constructor.
-
-
Method Details
-
setBeanMappings
Set mappings of strings to names ofMessageDecoder
beans.- Parameters:
mappings
- string to bean ID mappings
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
-
apply
- Specified by:
apply
in interfaceFunction<String,
MessageDecoder>
-