| | |
| | | /** The path to the LDIF file containing the data for this backend. */ |
| | | private String ldifFilePath; |
| | | |
| | | /** The server context. */ |
| | | private ServerContext serverContext; |
| | | |
| | | /** |
| | | * Creates a new backend with the provided information. All backend |
| | | * implementations must implement a default constructor that use |
| | |
| | | { |
| | | try |
| | | { |
| | | DirectoryServer.registerBaseDN(dn, this, |
| | | currentConfig.isIsPrivateBackend()); |
| | | serverContext.getBackendConfigManager().registerBaseDN(dn, this, currentConfig.isIsPrivateBackend()); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | { |
| | | try |
| | | { |
| | | DirectoryServer.deregisterBaseDN(dn); |
| | | serverContext.getBackendConfigManager().deregisterBaseDN(dn); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | @Override |
| | | public void configureBackend(LDIFBackendCfg config, ServerContext serverContext) throws ConfigException |
| | | { |
| | | this.serverContext = serverContext; |
| | | if (config != null) |
| | | { |
| | | currentConfig = config; |