org.apache.myfaces.view.facelets.el
Class DefaultVariableMapper

java.lang.Object
  extended by javax.el.VariableMapper
      extended by org.apache.myfaces.view.facelets.el.VariableMapperBase
          extended by org.apache.myfaces.view.facelets.el.DefaultVariableMapper

public final class DefaultVariableMapper
extends VariableMapperBase

Default instance of a VariableMapper backed by a Map

Version:
$Id: DefaultVariableMapper.java 1187700 2011-10-22 12:19:37Z bommel $
Author:
Jacob Hookom
See Also:
VariableMapper, ValueExpression, Map

Field Summary
 boolean _trackResolveVariables
           
 boolean _variableResolved
           
 
Constructor Summary
DefaultVariableMapper()
           
DefaultVariableMapper(javax.el.VariableMapper delegate)
           
 
Method Summary
 void afterConstructELExpression()
          Cleanup all initialization done.
 void beforeConstructELExpression()
          Indicates an expression will be resolved, so preparations should be done to detect if a contextual variable has been resolved.
 boolean isAnyFaceletsVariableResolved()
          Check if a variable has been resolved by this variable mapper or any parent "facelets contextual" variable mapper.
 javax.el.ValueExpression resolveVariable(String name)
           
 void setPageContext(PageContext pageContext)
          Set the current page context this variable mapper should resolve against.
 void setTemplateContext(TemplateContext templateContext)
          Set the current template context this variable mapper should resolve against.
 javax.el.ValueExpression setVariable(String name, javax.el.ValueExpression expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_trackResolveVariables

public boolean _trackResolveVariables

_variableResolved

public boolean _variableResolved
Constructor Detail

DefaultVariableMapper

public DefaultVariableMapper()

DefaultVariableMapper

public DefaultVariableMapper(javax.el.VariableMapper delegate)
Method Detail

resolveVariable

public javax.el.ValueExpression resolveVariable(String name)
Specified by:
resolveVariable in class javax.el.VariableMapper
See Also:
VariableMapper.resolveVariable(java.lang.String)

setVariable

public javax.el.ValueExpression setVariable(String name,
                                            javax.el.ValueExpression expression)
Specified by:
setVariable in class javax.el.VariableMapper
See Also:
VariableMapper.setVariable(java.lang.String, javax.el.ValueExpression)

setPageContext

public void setPageContext(PageContext pageContext)
Set the current page context this variable mapper should resolve against.

Parameters:
pageContext -

setTemplateContext

public void setTemplateContext(TemplateContext templateContext)
Set the current template context this variable mapper should resolve against.

Parameters:
templateContext -

isAnyFaceletsVariableResolved

public boolean isAnyFaceletsVariableResolved()
Description copied from class: VariableMapperBase
Check if a variable has been resolved by this variable mapper or any parent "facelets contextual" variable mapper.

Specified by:
isAnyFaceletsVariableResolved in class VariableMapperBase
Returns:

beforeConstructELExpression

public void beforeConstructELExpression()
Description copied from class: VariableMapperBase
Indicates an expression will be resolved, so preparations should be done to detect if a contextual variable has been resolved.

Specified by:
beforeConstructELExpression in class VariableMapperBase

afterConstructELExpression

public void afterConstructELExpression()
Description copied from class: VariableMapperBase
Cleanup all initialization done.

Specified by:
afterConstructELExpression in class VariableMapperBase


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.