AutowiredUsage

AutowiredUsage

We make some use of the Spring @Autowired annotation in the IdP software in support of plugin extensibility and to limit the need to expose Spring wiring by allowing internally defined beans to be automatically collected and injected into parts of the system.

Usage is constrainted to cases where it is absolutely required and a dedicated interface or class is always involved to control the injection. Most of the time the usage involves collections of objects of a particular type.

This list does not include cases where it is used in unit testing.

Target Bean

Resource

Injected Type

Target Bean

Resource

Injected Type

shibboleth.AdministrativeFlowDescriptorManager

classpath:/net/shibboleth/idp/conf/admin-system.xml

AdministrativeFlowDescriptor

shibboleth.AuthenticationFlowDescriptorManager

classpath:/net/shibboleth/idp/conf/authn-system.xml

AuthenticationFlowDescriptor

shibboleth.PostLoginC14NFlowDescriptorManager

classpath:/net/shibboleth/idp/conf/subject-c14n-system.xml

SubjectCanonicalizationFlowDescriptor

shibboleth.ProfileInterceptorFlowDescriptorManager

classpath:/net/shibboleth/idp/conf/profile-intercept-system.xml

ProfileInterceptorFlowDescriptor

shibboleth.LogoutPropagationFlowDescriptorManager

classpath:/net/shibboleth/idp/conf/session-manager-system.xml

LogoutPropagationFlowDescriptor

shibboleth.PrincipalServiceManager

classpath:/net/shibboleth/idp/conf/authn-system.xml

PrincipalService

shibboleth.AuthnComparisonRegistry

classpath:/net/shibboleth/idp/conf/authn-system.xml

PrincipalEvalPredicateFactoryRegistration

shibboleth.DefaultSPSessionSerializerRegistry

classpath:/net/shibboleth/idp/conf/session-manager-system.xml

SPSessionSerializerRegistry.Entry

mvcViewResolverFactory

classpath:/net/shibboleth/idp/conf/webflow-config.xml

ViewResolver

unnamed pair of beans, near top of file

classpath:/net/shibboleth/idp/conf/relying-party-system.xml

CredentialHolder

shibboleth.AttributeRegistryService (strategy argument)

classpath:/net/shibboleth/idp/conf/services-system.xml

AttributeTranscoderRegistry.NamingFunction

shibboleth.AutoWiredNodeProcessingMetadataFilter

classpath:/net/shibboleth/idp/conf/metadata-providers-system.xml

MetadataNodeProcessor

shibboleth.UserFacingPrefixPredicate

classpath:/net/shibboleth/idp/conf/filters.xml

URLPrefix