Class AbstractSettings.AbstractBuilder<T extends AbstractSettings, B extends AbstractSettings.AbstractBuilder<T,B> >
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder<T,B>
- Direct Known Subclasses:
AssertionSettings.Builder, CredentialSettings.Builder, EndpointSettings.Builder, IdentityProviderSettings.Builder, MetadataProviderSettings.Builder, MetadataProviderSettings.HttpProxySettings.Builder, MetadataSettings.Builder, MetadataSettings.ContactPersonSettings.Builder, MetadataSettings.EncryptionMethodSettings.Builder, MetadataSettings.OrganizationSettings.Builder, MetadataSettings.SigningMethodSettings.Builder, MetadataSettings.UIInfoSettings.Builder, MetadataSettings.UIInfoSettings.LogoSettings.Builder
- Enclosing class:
AbstractSettings
protected abstract static class AbstractSettings.AbstractBuilder<T extends AbstractSettings, B extends AbstractSettings.AbstractBuilder<T,B>>
extends Object
A builder for subclasses of
AbstractSettings.- Author:
- Martin Lindström
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidIs invoked bybuild()to apply default values to those settings that are mandatory and has not been assigned.final Tbuild()Builds the settings object and applies default values to those settings that are mandatory and has not been assigned.protected abstract TIs invoked bybuild()and builds the settings object.Gets the settings as a map.protected final BgetThis()Gets the builder.Assigns a configuration setting.AConsumerof the configuration settingsMapallowing the ability to add, replace, or remove.
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()Constructor.
-
-
Method Details
-
setting
-
settings
-
build
Builds the settings object and applies default values to those settings that are mandatory and has not been assigned.- Returns:
- the settings object
-
applyDefaultSettings
protected abstract void applyDefaultSettings()Is invoked bybuild()to apply default values to those settings that are mandatory and has not been assigned. -
buildObject
-
getSettings
-
getThis
-