View Javadoc

1   /*
2    *   Copyright 2004 The Apache Software Foundation
3    *
4    *   Licensed under the Apache License, Version 2.0 (the "License");
5    *   you may not use this file except in compliance with the License.
6    *   You may obtain a copy of the License at
7    *
8    *       http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *   Unless required by applicable law or agreed to in writing, software
11   *   distributed under the License is distributed on an "AS IS" BASIS,
12   *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *   See the License for the specific language governing permissions and
14   *   limitations under the License.
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  }