Allow the overwriting classes to specify whether the schema must be read or not.
| | |
| | | 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 |
| | |
| | | ex.add(oe); |
| | | } |
| | | |
| | | try |
| | | if (mustReadSchema()) |
| | | { |
| | | readSchema(); |
| | | } |
| | | catch (OpenDsException oe) |
| | | { |
| | | ex.add(oe); |
| | | try |
| | | { |
| | | readSchema(); |
| | | } |
| | | catch (OpenDsException oe) |
| | | { |
| | | ex.add(oe); |
| | | } |
| | | } |
| | | } |
| | | catch (OpenDsException oe) |
| | |
| | | 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; |
| | | } |
| | | } |