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

jvergara
27.03.2009 5ae7c5f6cb246b7081df4471899e12502e9102ac
Allow the overwriting classes to specify whether the schema must be read or not.
2 files modified
28 ■■■■ changed files
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java 17 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigReader.java 11 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java
@@ -109,7 +109,7 @@
    try
    {
      DirectoryServer.getInstance().initializeConfiguration();
      // Get the Directory Server configuration handler and use it.ad
      // Get the Directory Server configuration handler and use it.
      RootCfg root =
        ServerManagementContext.getInstance().getRootConfiguration();
      try
@@ -341,13 +341,16 @@
        ex.add(oe);
      }
      try
      if (mustReadSchema())
      {
        readSchema();
      }
      catch (OpenDsException oe)
      {
        ex.add(oe);
        try
        {
          readSchema();
        }
        catch (OpenDsException oe)
        {
          ex.add(oe);
        }
      }
    }
    catch (OpenDsException oe)
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigReader.java
@@ -324,4 +324,15 @@
    return AdministrationConnectorCfgDefn.getInstance().
    getListenAddressPropertyDefinition();
  }
  /**
   * Returns <CODE>true</CODE> if the schema must be read and
   * <CODE>false</CODE> otherwise.
   * @return <CODE>true</CODE> if the schema must be read and
   * <CODE>false</CODE> otherwise.
   */
  protected boolean mustReadSchema()
  {
    return true;
  }
}