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 an
AttributeTranscoderRegistryImpl
from a populated ApplicationContext
.-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Logger
log
Class logger.private Collection<AttributeTranscoderRegistry.NamingFunction<?>>
namingRegistry
Name of bean to supply naming function registry property. -
Constructor Summary
Constructors Constructor Description AttributeRegistryServiceStrategy()
-
Method Summary
Modifier and Type Method Description ServiceableComponent<AttributeTranscoderRegistry>
apply(ApplicationContext appContext)
void
setNamingRegistry(Collection<AttributeTranscoderRegistry.NamingFunction<?>> namingFunctions)
Sets the collection ofAttributeTranscoderRegistry.NamingFunction
s 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 Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
namingRegistry
@Nullable @NonnullElements private Collection<AttributeTranscoderRegistry.NamingFunction<?>> namingRegistryName of bean to supply naming function registry property.
-
-
Constructor Details
-
AttributeRegistryServiceStrategy
public AttributeRegistryServiceStrategy()
-
-
Method Details
-
setNamingRegistry
@Autowired public void setNamingRegistry(@Nullable @NonnullElements Collection<AttributeTranscoderRegistry.NamingFunction<?>> namingFunctions)Sets the collection ofAttributeTranscoderRegistry.NamingFunction
s 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:
apply
in interfaceFunction<ApplicationContext,ServiceableComponent<AttributeTranscoderRegistry>>
-