KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > servlet > jsp > el > VariableResolver


1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */

17
18 package javax.servlet.jsp.el;
19
20 /**
21  * <p>This class is used to customize the way an ExpressionEvaluator resolves
22  * variable references at evaluation time. For example, instances of this class can
23  * implement their own variable lookup mechanisms, or introduce the
24  * notion of "implicit variables" which override any other variables.
25  * An instance of this class should be passed when evaluating
26  * an expression.</p>
27  *
28  * <p>An instance of this class includes the context against which resolution
29  * will happen</p>
30  *
31  * @since 2.0
32  * @deprecated
33  */

34 public interface VariableResolver
35 {
36   //-------------------------------------
37
/**
38    * Resolves the specified variable.
39    * Returns null if the variable is not found.
40    *
41    * @param pName the name of the variable to resolve
42    * @return the result of the variable resolution
43    *
44    * @throws ELException if a failure occurred while trying to resolve
45    * the given variable
46    **/

47   public Object JavaDoc resolveVariable (String JavaDoc pName)
48     throws ELException JavaDoc;
49                     
50   //-------------------------------------
51
}
52
Popular Tags