T
- The type of provider configuration.public interface SchemaProvider<T extends SchemaProviderCfg>
A schema provider must be able to update the provided SchemaBuilder
at initialization and to use the provided
SchemaUpdater
to update the schema on further configuration changes.
Modifier and Type | Method and Description |
---|---|
void |
finalizeProvider()
Finalize the provider.
|
void |
initialize(ServerContext serverContext,
T configuration,
SchemaBuilder initialSchemaBuilder)
Initialize the schema provider from provided configuration and schema builder.
|
boolean |
isConfigurationAcceptable(T configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this provider.
|
void initialize(ServerContext serverContext, T configuration, SchemaBuilder initialSchemaBuilder) throws ConfigException, InitializationException
serverContext
- The server context.configuration
- Configuration of the provider.initialSchemaBuilder
- Schema builder to update during initialization phase.ConfigException
- If a configuration problem arises in the process of performing the initialization.InitializationException
- If a problem that is not configuration-related occurs during initialization.void finalizeProvider()
boolean isConfigurationAcceptable(T configuration, List<LocalizableMessage> unacceptableReasons)
configuration
- The provider configuration for which to make the determination.unacceptableReasons
- A list that may be used to hold the reasons that the provided configuration is not acceptable.true
if the provided configuration is acceptable for this provider, or false
if not.Copyright 2010-2022 ForgeRock AS.