Class InternalDirectoryServerPlugin

    • Constructor Detail

      • InternalDirectoryServerPlugin

        protected InternalDirectoryServerPlugin​(Dn componentDN,
                                                ServerContext serverContext,
                                                Set<PluginType> pluginTypes)
        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.
        serverContext - The server context.
        pluginTypes - The set of plugin types for which this internal plugin is registered.
    • Method Detail

      • initializePlugin

        public final void initializePlugin​(Set<PluginType> pluginTypes,
                                           PluginCfg configuration)
        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.
      • isConfigurationAcceptable

        public final boolean isConfigurationAcceptable​(PluginCfg configuration,
                                                       List<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.