mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
10.38.2009 3e8e32d7139c5f70a67f04e4e1337e8ee0b3a04b
opends/src/server/org/opends/server/core/networkgroups/NetworkGroupConfigManager.java
@@ -219,6 +219,35 @@
  /**
   * Finalizes all network groups currently defined in the Directory
   * Server configuration. This should only be called at Directory
   * Server shutdown.
   */
  public void finalizeNetworkGroups()
  {
    // Get the root configuration object.
    ServerManagementContext managementContext =
        ServerManagementContext.getInstance();
    RootCfg rootConfiguration =
        managementContext.getRootConfiguration();
    // Remove add / delete listeners.
    rootConfiguration.removeNetworkGroupAddListener(this);
    rootConfiguration.removeNetworkGroupDeleteListener(this);
    // Finalize the existing network groups.
    for (NetworkGroup networkGroup : networkGroups.values())
    {
      networkGroup.finalizeNetworkGroup();
    }
    // Clean up remaining state so that it is possible to reinitialize.
    networkGroups.clear();
  }
  /**
   * Initializes all network groups currently defined in the Directory
   * Server configuration. This should only be called at Directory
   * Server startup.