Class MetadataProviderContainer
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.ext.spring.service.AbstractServiceableComponent<MetadataResolver>
net.shibboleth.idp.profile.spring.relyingparty.metadata.MetadataProviderContainer
- All Implemented Interfaces:
Comparable<MetadataProviderContainer>
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
,ServiceableComponent<MetadataResolver>
,Aware
,ApplicationContextAware
public class MetadataProviderContainer
extends AbstractServiceableComponent<MetadataResolver>
implements Comparable<MetadataProviderContainer>
This class is a sortable container of
MetadataResolver
s, wrapped into a serviceable component.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Logger
Class logger.private MetadataResolver
The embedded resolver.private Integer
The key by which we sort the provider.private static int
If we autogenerate a sort key it comes from this count. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
protected void
boolean
.Return what we are build around.int
hashCode()
void
setEmbeddedResolver
(MetadataResolver theResolver) Set theMetadataResolver
to embed.void
setSortKey
(int key) Set the sort key.Methods inherited from class net.shibboleth.ext.spring.service.AbstractServiceableComponent
doDestroy, getApplicationContext, pinComponent, setApplicationContext, unloadComponent, unpinComponent
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Field Details
-
sortKeyValue
private static int sortKeyValueIf we autogenerate a sort key it comes from this count. -
log
private final org.slf4j.Logger logClass logger. -
resolver
The embedded resolver. -
sortKey
The key by which we sort the provider.
-
-
Constructor Details
-
MetadataProviderContainer
public MetadataProviderContainer()
-
-
Method Details
-
setSortKey
public void setSortKey(int key) Set the sort key.- Parameters:
key
- what to set
-
setEmbeddedResolver
Set theMetadataResolver
to embed.- Parameters:
theResolver
- TheMetadataResolver
to embed.
-
getEmbeddedResolver
Return what we are build around. Used for testing.- Returns:
- the contained resolver.
-
doInitialize
- Overrides:
doInitialize
in classAbstractServiceableComponent<MetadataResolver>
- Throws:
ComponentInitializationException
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MetadataProviderContainer>
-
equals
. We are within a spring context and so equality can be determined by ID, however we also test by sortKey just in case. -
hashCode
public int hashCode() -
getComponent
- Specified by:
getComponent
in interfaceServiceableComponent<MetadataResolver>
- Specified by:
getComponent
in classAbstractServiceableComponent<MetadataResolver>
-