KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > web > PwcWebContainerLifecycle


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.web;
25
26 import org.apache.catalina.Logger;
27
28 public interface PwcWebContainerLifecycle {
29
30   public void onInitialization(String JavaDoc rootDir, String JavaDoc instanceName,
31                                  boolean useNaming, Logger logger,
32                                String JavaDoc embeddedClassName)
33                         throws Exception JavaDoc;
34
35     /**
36      * Server is starting up applications
37      *
38      * @param sc ServerContext the server runtime context.
39      *
40      * @exception ServerLifecycleException if this subsystem detects a fatal
41      * error that prevents this subsystem from being used
42      */

43     public void onStartup()
44                         throws Exception JavaDoc;
45
46     /**
47      * Server has complted loading the applications and is ready to serve requests.
48      *
49      * @param sc ServerContext the server runtime context.
50      *
51      * @exception ServerLifecycleException if this subsystem detects a fatal
52      * error that prevents this subsystem from being used
53      */

54     public void onReady() throws Exception JavaDoc;
55
56     /**
57      * Server is shutting down applications
58      *
59      * @exception ServerLifecycleException if this subsystem detects a fatal
60      * error that prevents this subsystem from being used
61      */

62     public void onShutdown()
63                         throws Exception JavaDoc;
64
65     /**
66      * Server is terminating the subsystems and the runtime environment.
67      * Gracefully terminate the active use of the public methods of this
68      * subsystem. This method should be the last one called on a given
69      * instance of this subsystem.
70      *
71      * @exception ServerLifecycleException if this subsystem detects a fatal
72      * error that prevents this subsystem from being used
73      */

74     public void onTermination()
75                         throws Exception JavaDoc;
76 }
77
Popular Tags