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