1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.ldap.server.jndi;
18
19 import javax.naming.NamingException;
20
21 /***
22 * An event handler that listens to the changes occurs to
23 * {@link ContextFactoryService}.
24 *
25 * @author The Apache Directory Project
26 * @version $Rev: 264732 $, $Date: 2005-08-30 04:04:51 -0400 (Tue, 30 Aug 2005) $
27 */
28 public interface ContextFactoryServiceListener
29 {
30 /***
31 * Invoked before starting up {@link ContextFactoryService}.
32 */
33 void beforeStartup( ContextFactoryService service ) throws NamingException;
34 /***
35 * Invoked after starting up {@link ContextFactoryService}.
36 */
37 void afterStartup( ContextFactoryService service ) throws NamingException;
38 /***
39 * Invoked before shutting down {@link ContextFactoryService}.
40 */
41 void beforeShutdown( ContextFactoryService service ) throws NamingException;
42 /***
43 * Invoked after shutting down {@link ContextFactoryService}.
44 */
45 void afterShutdown( ContextFactoryService service ) throws NamingException;
46 /***
47 * Invoked before calling {@link ContextFactoryService#sync()}.
48 */
49 void beforeSync( ContextFactoryService service ) throws NamingException;
50 /***
51 * Invoked after calling {@link ContextFactoryService#sync()}.
52 */
53 void afterSync( ContextFactoryService service ) throws NamingException;
54 }