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 import javax.naming.spi.InitialContextFactory;
21
22 import org.apache.ldap.server.DirectoryService;
23
24
25 /***
26 * A simplistic implementation of {@link AbstractContextFactory}.
27 * This class simply extends {@link AbstractContextFactory} and leaves all
28 * abstract event listener methods as empty.
29 *
30 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
31 * @version $Rev: 307234 $
32 */
33 public class CoreContextFactory extends AbstractContextFactory implements InitialContextFactory
34 {
35 /***
36 * Creates a new instance.
37 */
38 public CoreContextFactory()
39 {
40 }
41
42 /***
43 * Does nothing by default.
44 */
45 public void beforeStartup( DirectoryService service ) throws NamingException
46 {
47 }
48
49 /***
50 * Does nothing by default.
51 */
52 public void afterStartup( DirectoryService service ) throws NamingException
53 {
54 }
55
56 /***
57 * Does nothing by default.
58 */
59 public void beforeShutdown( DirectoryService service ) throws NamingException
60 {
61 }
62
63 /***
64 * Does nothing by default.
65 */
66 public void afterShutdown( DirectoryService service ) throws NamingException
67 {
68 }
69
70 /***
71 * Does nothing by default.
72 */
73 public void beforeSync( DirectoryService service ) throws NamingException
74 {
75 }
76
77 /***
78 * Does nothing by default.
79 */
80 public void afterSync( DirectoryService service ) throws NamingException
81 {
82 }
83 }