KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > config > pluggable > ConfigEnvironment


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  * ConfigEnvironment.java
26  *
27  * Created on January 9, 2004, 11:41 AM
28  */

29
30 package com.sun.enterprise.config.pluggable;
31
32 /**
33  * ConfigEnvironment is used by ConfigFactory to
34  * create a configContext.
35  *
36  * @author sridatta
37  */

38 public interface ConfigEnvironment {
39     
40     /**
41      * get the root class for this execution
42      * cannot be null.
43      */

44     String JavaDoc getRootClass();
45     void setRootClass(String JavaDoc rootClass);
46     
47     String JavaDoc getUrl();
48     void setUrl(String JavaDoc url);
49     
50     /**
51      * Get the handler required for this execution
52      * can return null.
53      */

54     String JavaDoc getHandler();
55     void setHandler(String JavaDoc handler);
56     
57     /**
58      * interceptor for the configbean
59      * can return null
60      */

61     ConfigBeanInterceptor getConfigBeanInterceptor();
62     void setConfigBeanInterceptor(ConfigBeanInterceptor cbInterceptor);
63     
64     
65     boolean isReadOnly();
66     void setReadOnly(boolean readOnly);
67     
68     boolean isAutoCommitOn();
69     void setAutoCommitOn(boolean value);
70     
71     
72     //ConfigFactoryEnvironment:
73

74     /**
75      * only used by ConfigFactory to decide whether
76      * to cache the ConfigContext or not.
77      */

78     boolean isCachingEnabled();
79     void setCachingEnabled(boolean value);
80     
81     
82     //ConfigBeanEnvironment
83

84     /**
85      * gets ConfigBeansSettings for this execution
86      */

87     ConfigBeansSettings getConfigBeansSettings();
88     
89 }
90
Popular Tags