KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > web > InitializationParameterHolder


1 // Copyright 2005 The Apache Software Foundation
2
//
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 package org.apache.tapestry.web;
16
17 import java.util.List JavaDoc;
18
19 /**
20  * Defines methods for accessing initialization parameters.
21  *
22  * @author Howard M. Lewis Ship
23  * @since 4.0
24  */

25 public interface InitializationParameterHolder
26 {
27     /**
28      * Returns a sorted list of the names of all initialization parameters (which may be the empty
29      * list).
30      *
31      * @return List of String
32      */

33
34     public List JavaDoc getInitParameterNames();
35
36     /**
37      * Returns the value of the named parameter, or null if the reciever does not have such a
38      * parameter.
39      *
40      * @param name
41      * the name of the parameter to retrieve
42      * @return the corresponding value, or null
43      */

44
45     public String JavaDoc getInitParameterValue(String JavaDoc name);
46 }
Popular Tags