VariableResolver (Java EE 5)

Java EE API


javax.faces.el Class VariableResolver

java.lang.Object
  extended by javax.faces.el.VariableResolver

Deprecated. This has been replaced by ELResolver when operating with a null base argument.


VariableResolver 代表一种可插入的机制,用于在求值时解析顶级变量引用。

英文文档:

public abstract class VariableResolver
extends Object

VariableResolver represents a pluggable mechanism for resolving a top-level variable reference at evaluation time.


Constructor Summary
 
Method Summary
abstract  Object
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public VariableResolver()
英文文档:

VariableResolver

public VariableResolver()
Deprecated. 
Method Detail

abstract public Object resolveVariable(FacesContext context, String name) throws EvaluationException

解析指定的变量名称,并返回相应的对象(如果有);否则返回 null

context 据以解析此变量名称的 FacesContext
name 要解析的变量名称
ThrowsEvaluationException: 如果解析变量名称时抛出异常(抛出的异常必须作为此异常的 cause 属性包含在内)
ThrowsNullPointerException: 如果 contextnamenull
英文文档:

resolveVariable

public abstract Object resolveVariable(FacesContext context,
                                       String name)
                                throws EvaluationException
Deprecated. 

Resolve the specified variable name, and return the corresponding object, if any; otherwise, return null.

Parameters:
context - FacesContext against which to resolve this variable name
name - Name of the variable to be resolved
Throws:
EvaluationException - if an exception is thrown while resolving the variable name (the thrown exception must be included as the cause property of this exception)
NullPointerException - if context or name is null


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!