|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.apache.jasper.runtime.JspApplicationContextImpl
public class JspApplicationContextImpl
| 构造方法摘要 | |
|---|---|
JspApplicationContextImpl(ServletContext context)
|
|
| 方法摘要 | |
|---|---|
void |
addELContextListener(ELContextListener listener)
Registers a ELContextListeners so that context objects
can be added whenever a new ELContext is created. |
void |
addELResolver(ELResolver resolver)
Adds an ELResolver to affect the way EL variables
and properties are resolved for EL expressions appearing in JSP pages
and tag files. |
protected ELContext |
createELContext(ELResolver resolver)
|
protected static JspApplicationContextImpl |
findJspApplicationContext(ServletContext context)
|
protected Iterator<ELResolver> |
getELResolvers()
|
ExpressionFactory |
getExpressionFactory()
Returns a factory used to create ValueExpressions and
MethodExpressions so that EL expressions can be
parsed and evaluated. |
static void |
removeJspApplicationContext(ServletContext context)
|
void |
setExpressionFactory(ExpressionFactory expressionFactory)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public JspApplicationContextImpl(ServletContext context)
| 方法详细信息 |
|---|
public void addELResolver(ELResolver resolver)
JspApplicationContext 复制的描述ELResolver to affect the way EL variables
and properties are resolved for EL expressions appearing in JSP pages
and tag files.
For example, in the EL expression ${employee.lastName}, an
ELResolver determines what object "employee"
references and how to find its "lastName" property.
When evaluating an expression, the JSP container will consult a set of standard resolvers as well as any resolvers registered via this method. The set of resolvers are consulted in the following order:
ImplicitObjectELResolverELResolvers registered via this method, in the
order in which they are registered.MapELResolverListELResolverArrayELResolverBeanELResolverScopedAttributeELResolverIt is illegal to register an ELResolver after the
application has received any request from the client. If an
attempt is made to register an ELResolver after that time,
an IllegalStateException is thrown.
ELResolvers are in the chain,
aside from the standard ones. It is permissible to add
ELResolvers before or after initialization to
a CompositeELResolver that is already in the chain.
It is not possible to remove an ELResolver registered
with this method, once it has been registered.
JspApplicationContext 中的 addELResolverresolver - The new ELResolverpublic ExpressionFactory getExpressionFactory()
JspApplicationContext 复制的描述ValueExpressions and
MethodExpressions so that EL expressions can be
parsed and evaluated.
JspApplicationContext 中的 getExpressionFactoryExpressionFactory.public void setExpressionFactory(ExpressionFactory expressionFactory)
public void addELContextListener(ELContextListener listener)
JspApplicationContext 复制的描述ELContextListeners so that context objects
can be added whenever a new ELContext is created.
At a minimum, the ELContext objects created will
contain a reference to the JspContext for this request,
which is added by the JSP container.
This is sufficient for all the
default ELResolvers listed in JspApplicationContext.addELResolver(javax.el.ELResolver).
Note that JspContext.class is used as the key to ELContext.putContext()
for the JspContext object reference.
This method is generally used by frameworks and applications that
register their own ELResolver that needs context other
than JspContext. The listener will typically add the
necessary context to the ELContext provided in the
event object. Registering a listener that adds context allows the
ELResolvers in the stack to access the context they
need when they do a resolution.
JspApplicationContext 中的 addELContextListenerlistener - The listener to be notified when a new
ELContext is created.protected ELContext createELContext(ELResolver resolver)
protected static JspApplicationContextImpl findJspApplicationContext(ServletContext context)
public static void removeJspApplicationContext(ServletContext context)
protected Iterator<ELResolver> getELResolvers()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||