KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quickserver > net > InitServerHook


1 /*
2  * This file is part of the QuickServer library
3  * Copyright (C) 2003-2005 QuickServer.org
4  *
5  * Use, modification, copying and distribution of this software is subject to
6  * the terms and conditions of the GNU Lesser General Public License.
7  * You should have received a copy of the GNU LGP License along with this
8  * library; if not, you can download a copy from <http://www.quickserver.org/>.
9  *
10  * For questions, suggestions, bug-reports, enhancement-requests etc.
11  * visit http://www.quickserver.org
12  *
13  */

14
15 package org.quickserver.net;
16
17 import org.quickserver.net.server.QuickServer;
18
19 /**
20  * This interface is for any class that would like to become
21  * a onetime on init server hook. Called just after server
22  * loads the xml configuration file. Can be using to set up loggers.
23  * These classes should have a default constructor.
24  * @see org.quickserver.util.xmlreader.InitServerHooks
25  * @see org.quickserver.net.ServerHook
26  * @author Akshathkumar Shetty
27  * @since 1.4
28  */

29 public interface InitServerHook {
30     /**
31      * Information about the server hook.
32      */

33     public String JavaDoc info();
34
35     /**
36      * Method called to perform any initialisation
37      * @param quickserver is the server to which hook belongs to.
38      */

39     public void handleInit(QuickServer quickserver) throws Exception JavaDoc;
40
41 }
42
Popular Tags