1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.commons.scxml.env.jsp;
19
20 import javax.servlet.jsp.el.ELException;
21 import javax.servlet.jsp.el.VariableResolver;
22
23 import org.apache.commons.scxml.Context;
24 import org.apache.commons.scxml.env.SimpleContext;
25
26 /***
27 * EL Context for SCXML interpreter.
28 *
29 */
30 public class ELContext extends SimpleContext implements VariableResolver {
31
32 /***
33 * Constructor.
34 *
35 */
36 public ELContext() {
37 super();
38 }
39
40 /***
41 * Constructor.
42 *
43 * @param parent A parent Context, can be null
44 */
45 public ELContext(final Context parent) {
46 super(parent);
47 }
48
49 /***
50 * Resolves the specified variable. Returns null if the variable is
51 * not found.
52 *
53 * @param pName The variable to resolve
54 * @return Object The value of the variable, or null, if it does not
55 * exist
56 * @throws ELException While resolving the variable
57 * @see javax.servlet.jsp.el.VariableResolver#resolveVariable(String)
58 */
59 public Object resolveVariable(final String pName) throws ELException {
60 return get(pName);
61 }
62
63 }
64