net.jakubholy.jeeutils.jsfelcheck.expressionfinder.impl.jasper.variables
Class ContextVariableRegistry

java.lang.Object
  extended by net.jakubholy.jeeutils.jsfelcheck.expressionfinder.impl.jasper.variables.ContextVariableRegistry
All Implemented Interfaces:
ElVariableResolver

public class ContextVariableRegistry
extends Object
implements ElVariableResolver

Registry of local JSF EL variables defined in a view page used for resolving them in a context-sensitive way. It delegates the actual resolution to individual tag resolvers respecting the current context (scope) starting from the innermost context and proceeding upwards.


Nested Class Summary
static class ContextVariableRegistry.Error_YouMustDelcareTypeForThisVariable
           
 
Constructor Summary
ContextVariableRegistry()
           
 
Method Summary
 void discardContextFor(PageNode jspTag)
           
 void extractContextVariables(PageNode jspTag, AttributesValidationResult resolvedJsfExpressions)
           
 ContextVariableRegistry registerResolverForTag(String tagQName, TagJsfVariableResolver resolver)
           
 Class<?> resolveVariable(String name)
          Return the Class for the given (likely context-local) JSF EL variable or null if it cannot be resolved (is unknown).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextVariableRegistry

public ContextVariableRegistry()
Method Detail

registerResolverForTag

public ContextVariableRegistry registerResolverForTag(String tagQName,
                                                      TagJsfVariableResolver resolver)

resolveVariable

public Class<?> resolveVariable(String name)
Description copied from interface: ElVariableResolver
Return the Class for the given (likely context-local) JSF EL variable or null if it cannot be resolved (is unknown).

Specified by:
resolveVariable in interface ElVariableResolver

extractContextVariables

public void extractContextVariables(PageNode jspTag,
                                    AttributesValidationResult resolvedJsfExpressions)
                             throws DeclareTypeOfVariableException
Throws:
DeclareTypeOfVariableException

discardContextFor

public void discardContextFor(PageNode jspTag)


Copyright © 2011. All Rights Reserved.