01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: * Resolves the specified variable.
38: * Returns null if the variable is not found.
39: *
40: * @param pName the name of the variable to resolve
41: * @return the result of the variable resolution
42: *
43: * @throws ELException if a failure occurred while trying to resolve
44: * the given variable
45: **/
46: public Object resolveVariable(String pName) throws ELException;
47:
48: //-------------------------------------
49: }
|