org.apache.shale.spring
Class WebApplicationContextVariableResolver

java.lang.Object
  extended by javax.faces.el.VariableResolver
      extended by org.apache.shale.spring.WebApplicationContextVariableResolver

public class WebApplicationContextVariableResolver
extends javax.faces.el.VariableResolver

Extended VariableResolver that exposes the Spring WebApplicationContext instance under a variable named with the specified manifest constant.

$Id: WebApplicationContextVariableResolver.java 464373 2006-10-16 04:21:54Z rahul $


Constructor Summary
WebApplicationContextVariableResolver(javax.faces.el.VariableResolver original)
          Construct a new WebApplicationContextVariableResolver instance.
 
Method Summary
 Object resolveVariable(javax.faces.context.FacesContext context, String name)
          Resolve variable names known to this resolver; otherwise, delegate to the original resolver passed to our constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebApplicationContextVariableResolver

public WebApplicationContextVariableResolver(javax.faces.el.VariableResolver original)

Construct a new WebApplicationContextVariableResolver instance.

Parameters:
original - Original resolver to delegate to.
Method Detail

resolveVariable

public Object resolveVariable(javax.faces.context.FacesContext context,
                              String name)
                       throws javax.faces.el.EvaluationException

Resolve variable names known to this resolver; otherwise, delegate to the original resolver passed to our constructor.

Specified by:
resolveVariable in class javax.faces.el.VariableResolver
Parameters:
context - FacesContext for the current request
name - Variable name to be resolved
Throws:
javax.faces.el.EvaluationException - if an evaluation error occurs


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.