| | |
| | | |
| | | import org.forgerock.opendj.config.server.ServerManagementContext; |
| | | import org.opends.server.core.ConfigurationBootstrapper; |
| | | import org.opends.server.core.ConfigurationHandler; |
| | | import org.opends.server.core.ServerContext; |
| | | import org.opends.server.types.DirectoryEnvironmentConfig; |
| | | import org.opends.server.types.InitializationException; |
| | |
| | | public ServerContextBuilder withConfigurationBootstrapped() |
| | | throws InitializationException |
| | | { |
| | | final ServerManagementContext serverManagementContext = ConfigurationBootstrapper.bootstrap(serverContext); |
| | | final ServerManagementContext serverManagementContext = |
| | | ConfigurationBootstrapper.bootstrap(serverContext, ConfigurationHandler.class); |
| | | when(serverContext.getServerManagementContext()).thenReturn(serverManagementContext); |
| | | return this; |
| | | } |