1 package org.apache.ldap.server; 2 3 4 import javax.naming.NamingException; 5 import javax.naming.ldap.LdapContext; 6 import java.util.Hashtable; 7 8 9 /*** 10 * 11 */ 12 public interface BackendSubsystem 13 { 14 /*** 15 * Gets an LdapContext to attach to a point in the DIT using the supplied 16 * environment parameters. 17 * 18 * @param env environment settings to use for the context 19 * @return an LdapContext using the supplied environment 20 * @throws NamingException if something goes wrong 21 */ 22 LdapContext getLdapContext( Hashtable env ) throws NamingException; 23 24 void sync() throws NamingException; 25 26 void shutdown() throws NamingException; 27 }