| | |
| | | private CertificateMapperConfigManager certificateMapperConfigManager; |
| | | |
| | | /** The class used to provide the config handler implementation. */ |
| | | private Class configClass; |
| | | private Class<ConfigHandler> configClass; |
| | | |
| | | /** The configuration handler for the Directory Server. */ |
| | | private ConfigHandler configHandler; |
| | |
| | | * The virtual attribute provider configuration manager for the Directory |
| | | * Server. |
| | | */ |
| | | private VirtualAttributeConfigManager virtualAttributeConfigManager; |
| | | private final VirtualAttributeConfigManager virtualAttributeConfigManager = |
| | | new VirtualAttributeConfigManager(); |
| | | |
| | | /** The work queue that will be used to service client requests. */ |
| | | private WorkQueue workQueue; |
| | |
| | | public void initializeConfiguration(String configClass, String configFile) |
| | | throws InitializationException |
| | | { |
| | | Class cfgClass; |
| | | Class<?> cfgClass; |
| | | try |
| | | { |
| | | cfgClass = Class.forName(configClass); |
| | |
| | | |
| | | |
| | | // Load and instantiate the configuration handler class. |
| | | Class handlerClass = configClass; |
| | | Class<ConfigHandler> handlerClass = configClass; |
| | | try |
| | | { |
| | | configHandler = (ConfigHandler) handlerClass.newInstance(); |
| | | configHandler = handlerClass.newInstance(); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | e.getLocalizedMessage()); |
| | | throw new InitializationException(message, e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | // Initialize all the virtual attribute handlers. |
| | | initializeVirtualAttributes(); |
| | | virtualAttributeConfigManager.initializeVirtualAttributes(); |
| | | |
| | | |
| | | // Initialize the core Directory Server configuration. |
| | |
| | | |
| | | // Now we can initialize both subentry manager and group manager |
| | | // for this backend. |
| | | subentryManager.performBackendInitializationProcessing( |
| | | configHandler); |
| | | subentryManager.performBackendInitializationProcessing(configHandler); |
| | | groupManager.performBackendInitializationProcessing(configHandler); |
| | | |
| | | // Initialize the access control handler. |
| | | AccessControlConfigManager.getInstance().initializeAccessControl(); |
| | | |
| | | // Initialize all the backends and their associated suffixes |
| | | // and initialize the workflows when workflow configuration mode |
| | | // is auto. |
| | | // and initialize the workflows when workflow configuration mode is auto. |
| | | initializeBackends(); |
| | | |
| | | // When workflow configuration mode is manual, do configure the |
| | |
| | | // Notify all the initialization completed listeners. |
| | | for (InitializationCompletedListener initializationCompletedListener : |
| | | directoryServer.initializationCompletedListeners) |
| | | { |
| | | { |
| | | try |
| | | { |
| | | initializationCompletedListener.initializationCompleted(); |
| | |
| | | |
| | | |
| | | /** |
| | | * Initializes the set of virtual attributes that should be defined in the |
| | | * Directory Server. |
| | | * |
| | | * @throws ConfigException If there is a configuration problem with any of |
| | | * the virtual attribute handlers. |
| | | * |
| | | * @throws InitializationException If a problem occurs while initializing |
| | | * the virtual attribute handlers that is |
| | | * not related to the server configuration. |
| | | */ |
| | | private void initializeVirtualAttributes() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | virtualAttributeConfigManager = new VirtualAttributeConfigManager(); |
| | | virtualAttributeConfigManager.initializeVirtualAttributes(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Initializes the set of connection handlers that should be defined in the |
| | | * Directory Server. |
| | | * |