org.apache.shale.test.el
Class MockELContext

java.lang.Object
  extended by javax.el.ELContext
      extended by org.apache.shale.test.el.MockELContext

public class MockELContext
extends javax.el.ELContext

Mock implementation of ELContext.

Since:
1.0.4

Constructor Summary
MockELContext()
          Creates a new instance of MockELContext
 
Method Summary
 Object getContext(Class key)
          
 javax.el.ELResolver getELResolver()
          
 javax.el.FunctionMapper getFunctionMapper()
          
 Locale getLocale()
          
 javax.el.VariableMapper getVariableMapper()
          
 boolean isPropertyResolved()
          
 void putContext(Class key, Object value)
          
 void setLocale(Locale locale)
          
 void setPropertyResolved(boolean propertyResolved)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockELContext

public MockELContext()
Creates a new instance of MockELContext

Method Detail

getContext

public Object getContext(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 Locale getLocale()

Overrides:
getLocale in class javax.el.ELContext

isPropertyResolved

public boolean isPropertyResolved()

Overrides:
isPropertyResolved in class javax.el.ELContext

putContext

public void putContext(Class key,
                       Object value)

Overrides:
putContext in class javax.el.ELContext

setPropertyResolved

public void setPropertyResolved(boolean propertyResolved)

Overrides:
setPropertyResolved in class javax.el.ELContext

getVariableMapper

public javax.el.VariableMapper getVariableMapper()

Specified by:
getVariableMapper in class javax.el.ELContext

setLocale

public void setLocale(Locale locale)

Overrides:
setLocale in class javax.el.ELContext


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