| | |
| | | DN dn = configuration.dn(); |
| | | try { |
| | | // Attempt to start the connection handler. |
| | | ConnectionHandler connectionHandler = |
| | | ConnectionHandler<? extends ConnectionHandlerCfg> connectionHandler = |
| | | getConnectionHandler(configuration); |
| | | connectionHandler.start(); |
| | | |
| | |
| | | |
| | | // Register the connection handler with the Directory |
| | | // Server. |
| | | DirectoryServer |
| | | .registerConnectionHandler(connectionHandler); |
| | | DirectoryServer.registerConnectionHandler( |
| | | (ConnectionHandler<? extends ConnectionHandlerCfg>) |
| | | connectionHandler); |
| | | } catch (ConfigException e) { |
| | | if (debugEnabled()) |
| | | { |
| | |
| | | // because we're still in the startup process. Therefore, we |
| | | // will not do so and allow the server to start it at the very |
| | | // end of the initialization process. |
| | | ConnectionHandler connectionHandler = getConnectionHandler(config); |
| | | ConnectionHandler<? extends ConnectionHandlerCfg> connectionHandler = |
| | | getConnectionHandler(config); |
| | | |
| | | // Put this connection handler in the hash so that we will be |
| | | // able to find it if it is altered. |
| | |
| | | |
| | | |
| | | // Load and initialize the connection handler named in the config. |
| | | private ConnectionHandler getConnectionHandler( |
| | | ConnectionHandlerCfg config) throws ConfigException { |
| | | private ConnectionHandler<? extends ConnectionHandlerCfg> |
| | | getConnectionHandler(ConnectionHandlerCfg config) |
| | | throws ConfigException |
| | | { |
| | | String className = config.getJavaImplementationClass(); |
| | | ConnectionHandlerCfgDefn d = |
| | | ConnectionHandlerCfgDefn.getInstance(); |
| | |
| | | } |
| | | |
| | | // The connection handler has been successfully initialized. |
| | | return connectionHandler; |
| | | return (ConnectionHandler<? extends ConnectionHandlerCfg>) |
| | | connectionHandler; |
| | | } |
| | | |
| | | |