Class InternalDirectoryServerPlugin

    • Constructor Detail

      • InternalDirectoryServerPlugin

        protected InternalDirectoryServerPlugin​(DN componentDN,
                                                Set<PluginType> pluginTypes,
                                                boolean invokeForInternalOps)
        Creates a new internal directory server plugin using the provided component name and plugin types.
        Parameters:
        componentDN - The configuration entry name of the component associated with this internal plugin.
        pluginTypes - The set of plugin types for which this internal plugin is registered.
        invokeForInternalOps - Indicates whether this internal plugin should be invoked for internal operations.
    • Method Detail

      • initializePlugin

        public final void initializePlugin​(Set<PluginType> pluginTypes,
                                           PluginCfg configuration)
                                    throws ConfigException,
                                           InitializationException
        Description copied from class: DirectoryServerPlugin
        Performs any initialization necessary for this plugin. This will be called as soon as the plugin has been loaded and before it is registered with the server.
        Specified by:
        initializePlugin in class DirectoryServerPlugin<PluginCfg>
        Parameters:
        pluginTypes - The set of plugin types that indicate the ways in which this plugin will be invoked.
        configuration - The configuration for this plugin.
        Throws:
        ConfigException - If the provided entry does not contain a valid configuration for this plugin.
        InitializationException - If a problem occurs while initializing the plugin that is not related to the server configuration.
      • isConfigurationAcceptable

        public final boolean isConfigurationAcceptable​(PluginCfg configuration,
                                                       List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
        Description copied from class: DirectoryServerPlugin
        Indicates whether the provided configuration is acceptable for this plugin. It should be possible to call this method on an uninitialized plugin instance in order to determine whether the plugin would be able to use the provided configuration.
        Overrides:
        isConfigurationAcceptable in class DirectoryServerPlugin<PluginCfg>
        Parameters:
        configuration - The plugin 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 plugin, or false if not.