Class AttributeRegistryServiceStrategy
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
-
- net.shibboleth.idp.attribute.transcoding.impl.AttributeRegistryServiceStrategy
-
- All Implemented Interfaces:
Function<ApplicationContext,ServiceableComponent<AttributeTranscoderRegistry>>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class AttributeRegistryServiceStrategy extends AbstractIdentifiableInitializableComponent implements Function<ApplicationContext,ServiceableComponent<AttributeTranscoderRegistry>>
Strategy for summoning up anAttributeTranscoderRegistryImplfrom a populatedApplicationContext.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Collection<AttributeTranscoderRegistry.NamingFunction<?>>namingRegistryName of bean to supply naming function registry property.
-
Constructor Summary
Constructors Constructor Description AttributeRegistryServiceStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceableComponent<AttributeTranscoderRegistry>apply(ApplicationContext appContext)voidsetNamingRegistry(Collection<AttributeTranscoderRegistry.NamingFunction<?>> namingFunctions)Sets the collection ofAttributeTranscoderRegistry.NamingFunctions to install into the registry.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
namingRegistry
@Nullable @NonnullElements private Collection<AttributeTranscoderRegistry.NamingFunction<?>> namingRegistry
Name of bean to supply naming function registry property.
-
-
Method Detail
-
setNamingRegistry
@Autowired public void setNamingRegistry(@Nullable @NonnullElements Collection<AttributeTranscoderRegistry.NamingFunction<?>> namingFunctions)
Sets the collection ofAttributeTranscoderRegistry.NamingFunctions to install into the registry.This is done for auto-wiring exposure since plugins may be supplying additional functions outside the registry's own service context.
- Parameters:
namingFunctions- collection of functions to install
-
apply
@Nullable public ServiceableComponent<AttributeTranscoderRegistry> apply(@Nullable ApplicationContext appContext)
- Specified by:
applyin interfaceFunction<ApplicationContext,ServiceableComponent<AttributeTranscoderRegistry>>
-
-