Class AttributeResolverServiceStrategy
- 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.resolver.spring.impl.AttributeResolverServiceStrategy
-
- All Implemented Interfaces:
Function<ApplicationContext,ServiceableComponent<AttributeResolver>>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class AttributeResolverServiceStrategy extends AbstractIdentifiableInitializableComponent implements Function<ApplicationContext,ServiceableComponent<AttributeResolver>>
Strategy for summoning up anAttributeResolverImplfrom a populatedApplicationContext. We do this by finding all the configuredAttributeDefinitionandDataConnectorbeans and bunging them into the Attribute Resolver which we then initialize.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private booleanstripNullsWhether to strip null attribute values.private booleansuppressDisplayInformationWhether to attach DisplayInfo to attributes.
-
Constructor Summary
Constructors Constructor Description AttributeResolverServiceStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServiceableComponent<AttributeResolver>apply(ApplicationContext appContext)booleanisStripNulls()Do we strip nulls from attribute values.booleanisSuppressDisplayInformation()Do we allow addition of Display Information?voidsetStripNulls(boolean doStripNulls)Sets whether to strip nulls from attribute values.voidsetSuppressDisplayInformation(boolean what)Deprecated, for removal: This API element is subject to removal in a future version.Display Information should be consulted at point of use-
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
-
-
-
-
Method Detail
-
isStripNulls
public boolean isStripNulls()
Do we strip nulls from attribute values.- Returns:
- Returns whether to strip nulls from attribute values
-
setStripNulls
public void setStripNulls(boolean doStripNulls)
Sets whether to strip nulls from attribute values.- Parameters:
doStripNulls- what to set
-
isSuppressDisplayInformation
public boolean isSuppressDisplayInformation()
Do we allow addition of Display Information?- Returns:
- whether we are suppressing
-
setSuppressDisplayInformation
@Deprecated(forRemoval=true, since="4.2") public void setSuppressDisplayInformation(boolean what)
Deprecated, for removal: This API element is subject to removal in a future version.Display Information should be consulted at point of useSet whether we suppress addition of Display Information.- Parameters:
what- true if we suppress the addition.
-
apply
@Nullable public ServiceableComponent<AttributeResolver> apply(@Nullable ApplicationContext appContext)
- Specified by:
applyin interfaceFunction<ApplicationContext,ServiceableComponent<AttributeResolver>>
-
-