org.omnifaces.el
Class ELContextWrapper

java.lang.Object
  extended by javax.el.ELContext
      extended by org.omnifaces.el.ELContextWrapper
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.el.ELContext>

public class ELContextWrapper
extends javax.el.ELContext
implements javax.faces.FacesWrapper<javax.el.ELContext>

Provides a simple implementation of ELContext that can be sub-classed by developers wishing to provide specialized behavior to an existing ELContext instance. The default implementation of all methods is to call through to the wrapped ViewHandler.

Usage: extend this class and override getWrapped() to return the instance we are wrapping, or provide this instance to the overloaded constructor.

Author:
Arjan Tijms

Constructor Summary
ELContextWrapper()
           
ELContextWrapper(javax.el.ELContext elContext)
           
 
Method Summary
 java.lang.Object getContext(java.lang.Class key)
          
 javax.el.ELResolver getELResolver()
          
 javax.el.FunctionMapper getFunctionMapper()
          
 java.util.Locale getLocale()
          
 javax.el.VariableMapper getVariableMapper()
          
 javax.el.ELContext getWrapped()
           
 boolean isPropertyResolved()
          
 void putContext(java.lang.Class key, java.lang.Object contextObject)
          
 void setLocale(java.util.Locale locale)
          
 void setPropertyResolved(boolean resolved)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ELContextWrapper

public ELContextWrapper()

ELContextWrapper

public ELContextWrapper(javax.el.ELContext elContext)
Method Detail

getWrapped

public javax.el.ELContext getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.el.ELContext>

setPropertyResolved

public void setPropertyResolved(boolean resolved)

Overrides:
setPropertyResolved in class javax.el.ELContext

isPropertyResolved

public boolean isPropertyResolved()

Overrides:
isPropertyResolved in class javax.el.ELContext

putContext

public void putContext(java.lang.Class key,
                       java.lang.Object contextObject)

Overrides:
putContext in class javax.el.ELContext

getContext

public java.lang.Object getContext(java.lang.Class key)

Overrides:
getContext in class javax.el.ELContext

getELResolver

public javax.el.ELResolver getELResolver()

Specified by:
getELResolver in class javax.el.ELContext

getFunctionMapper

public javax.el.FunctionMapper getFunctionMapper()

Specified by:
getFunctionMapper in class javax.el.ELContext

getLocale

public java.util.Locale getLocale()

Overrides:
getLocale in class javax.el.ELContext

setLocale

public void setLocale(java.util.Locale locale)

Overrides:
setLocale in class javax.el.ELContext

getVariableMapper

public javax.el.VariableMapper getVariableMapper()

Specified by:
getVariableMapper in class javax.el.ELContext