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
16 ■■■■■ changed files
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java 5 ●●●● 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,6 +341,8 @@
        ex.add(oe);
      }
      if (mustReadSchema())
      {
      try
      {
        readSchema();
@@ -350,6 +352,7 @@
        ex.add(oe);
      }
    }
    }
    catch (OpenDsException oe)
    {
      ex.add(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;
  }
}