KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > container > config > app > AppConfigureCollection


1 /*
2  * Copyright 2003-2006 the original author or authors.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  *
15  */

16 package com.jdon.container.config.app;
17
18 import java.util.ArrayList JavaDoc;
19 import java.util.Collection JavaDoc;
20
21 /**
22  * the collection for framework application: jdonframework.xml
23  *
24  * @author <a HREF="mailto:banqiao@jdon.com">banq</a>
25  *
26  */

27 public class AppConfigureCollection {
28     public final static String JavaDoc CONFIG_NAME = "modelmapping-config";
29     
30     public final static String JavaDoc NAME = "AppConfigureFiles";
31     
32     /**
33      * the filename collection
34      * it's element is the String type, filename.
35      */

36     private Collection JavaDoc configList ;
37     
38     public AppConfigureCollection() {
39         configList = new ArrayList JavaDoc();
40     }
41     
42     /**
43      * @param configList
44      */

45     public AppConfigureCollection(Collection JavaDoc configList) {
46         this.configList = configList;
47     }
48     
49     public void addConfigList(String JavaDoc configureFileName){
50         configList.add(configureFileName);
51     }
52     
53     /**
54      * @return Returns the configList.
55      */

56     public Collection JavaDoc getConfigList() {
57         return configList;
58     }
59     /**
60      * @param configList The configList to set.
61      */

62     public void setConfigList(Collection JavaDoc configList) {
63         this.configList = configList;
64     }
65 }
66
Popular Tags