Skip to content

Package: VariableResolver

VariableResolver

Coverage

1: /*
2: * Copyright (c) 1997, 2020 Oracle and/or its affiliates and others.
3: * All rights reserved.
4: * Copyright 2004 The Apache Software Foundation
5: *
6: * Licensed under the Apache License, Version 2.0 (the "License");
7: * you may not use this file except in compliance with the License.
8: * You may obtain a copy of the License at
9: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package jakarta.servlet.jsp.el;
20:
21: /**
22: * <p>
23: * This class is used to customize the way an ExpressionEvaluator resolves variable references at evaluation time. For
24: * example, instances of this class can implement their own variable lookup mechanisms, or introduce the notion of
25: * "implicit variables" which override any other variables. An instance of this class should be passed when evaluating
26: * an expression.
27: * </p>
28: *
29: * <p>
30: * An instance of this class includes the context against which resolution will happen
31: * </p>
32: *
33: * @deprecated As of JSP 2.1, replaced by {@link jakarta.el.ELResolver}
34: * @since JSP 2.0
35: */
36: @Deprecated
37: public interface VariableResolver {
38:
39: /**
40: * Resolves the specified variable. Returns null if the variable is not found.
41: *
42: * @param pName the name of the variable to resolve
43: * @return the result of the variable resolution
44: *
45: * @throws ELException if a failure occurred while trying to resolve the given variable
46: */
47: public Object resolveVariable(String pName) throws ELException;
48: }