KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > phasing > DeploymentContext


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 /*
25  * DeploymentContext.java
26  *
27  * Created on May 22, 2003, 2:26 PM
28  * @author sandhyae
29  * <BR> <I>$Source: /cvs/glassfish/appserv-core/src/java/com/sun/enterprise/deployment/phasing/DeploymentContext.java,v $
30  *
31  */

32
33 package com.sun.enterprise.deployment.phasing;
34
35 import com.sun.enterprise.config.ConfigContext;
36 import com.sun.enterprise.config.ConfigException;
37 import com.sun.enterprise.instance.InstanceEnvironment;
38 import com.sun.enterprise.util.i18n.StringManager;
39
40 /**
41  * This class is used to pass the common context needed by all deployment phases
42  * @author Sandhya E
43  */

44 public class DeploymentContext {
45     
46     /**
47      * Creates a new instance of DeploymentContext
48      */

49     public DeploymentContext()
50     {
51     }
52     
53     /**
54      * Set the config context as specified
55      * @param configContext config context object
56      */

57     public void setConfigContext(ConfigContext configContext)
58     {
59         this.configContext = configContext;
60     }
61     
62     /**
63      * returns the stored configContext
64      * @return configContext
65      */

66     public ConfigContext getConfigContext()
67     {
68         return configContext;
69     }
70     
71     /** config context */
72     private ConfigContext configContext = null;
73     
74 }
75
Popular Tags