Class CoreSchemaProvider

    • Constructor Detail

      • CoreSchemaProvider

        public CoreSchemaProvider()
    • Method Detail

      • initialize

        public void initialize​(ServerContext serverContext,
                               CoreSchemaCfg configuration,
                               SchemaBuilder initialSchemaBuilder)
        Description copied from interface: SchemaProvider
        Initialize the schema provider from provided configuration and schema builder.
        Specified by:
        initialize in interface SchemaProvider<CoreSchemaCfg>
        Parameters:
        serverContext - The server context.
        configuration - Configuration of the provider.
        initialSchemaBuilder - Schema builder to update during initialization phase.
      • isConfigurationAcceptable

        public boolean isConfigurationAcceptable​(CoreSchemaCfg config,
                                                 List<LocalizableMessage> unacceptableReasons)
        Description copied from interface: SchemaProvider
        Indicates whether the provided configuration is acceptable for this provider.
        Specified by:
        isConfigurationAcceptable in interface SchemaProvider<CoreSchemaCfg>
        Parameters:
        config - 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.
        Returns:
        true if the provided configuration is acceptable for this provider, or false if not.
      • isConfigurationChangeAcceptable

        public boolean isConfigurationChangeAcceptable​(CoreSchemaCfg config,
                                                       List<LocalizableMessage> unacceptableReasons)
        Description copied from interface: ConfigurationChangeListener
        Indicates whether the proposed change to the configuration is acceptable to this change listener.
        Specified by:
        isConfigurationChangeAcceptable in interface ConfigurationChangeListener<CoreSchemaCfg>
        Parameters:
        config - The new configuration containing the changes.
        unacceptableReasons - A list that can be used to hold messages about why the provided configuration is not acceptable.
        Returns:
        Returns true if the proposed change is acceptable, or false if it is not.