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  
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  }