org.apache.shale.test.mock
Class MockApplication12

java.lang.Object
  extended by javax.faces.application.Application
      extended by org.apache.shale.test.mock.MockApplication
          extended by org.apache.shale.test.mock.MockApplication12

public class MockApplication12
extends MockApplication

Mock implementation of ExternalContext that includes the semantics added by JavaServer Faces 1.2.

$Id: MockApplication12.java 503872 2007-02-05 21:10:06Z rahul $

Since:
1.0.4

Constructor Summary
MockApplication12()
          Construct a default instance.
 
Method Summary
 void addELContextListener(javax.el.ELContextListener listener)
          
 void addELResolver(javax.el.ELResolver resolver)
          
 void addResourceBundle(String name, ResourceBundle bundle)
          Add the specified resource bundle to those associated with this application.
 javax.faces.component.UIComponent createComponent(javax.el.ValueExpression expression, javax.faces.context.FacesContext context, String componentType)
          
 Object evaluateExpressionGet(javax.faces.context.FacesContext context, String expression, Class expectedType)
          
 javax.el.ELContextListener[] getELContextListeners()
          
 javax.el.ELResolver getELResolver()
          
 javax.el.ExpressionFactory getExpressionFactory()
          
 ResourceBundle getResourceBundle(javax.faces.context.FacesContext context, String name)
          
 Map getResourceBundles()
          Return a Map of the resource bundles configured for this application, keyed by name.
 void removeELContextListener(javax.el.ELContextListener listener)
          
 
Methods inherited from class org.apache.shale.test.mock.MockApplication
addComponent, addConverter, addConverter, addValidator, createComponent, createComponent, createConverter, createConverter, createMethodBinding, createValidator, createValueBinding, getActionListener, getComponentTypes, getConverterIds, getConverterTypes, getDefaultLocale, getDefaultRenderKitId, getMessageBundle, getNavigationHandler, getPropertyResolver, getStateManager, getSupportedLocales, getValidatorIds, getVariableResolver, getViewHandler, setActionListener, setDefaultLocale, setDefaultRenderKitId, setMessageBundle, setNavigationHandler, setPropertyResolver, setStateManager, setSupportedLocales, setVariableResolver, setViewHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockApplication12

public MockApplication12()

Construct a default instance.

Method Detail

addResourceBundle

public void addResourceBundle(String name,
                              ResourceBundle bundle)

Add the specified resource bundle to those associated with this application.

Parameters:
name - Name under which to add this resource bundle
bundle - ResourceBundle to add

getResourceBundles

public Map getResourceBundles()

Return a Map of the resource bundles configured for this application, keyed by name.


addELContextListener

public void addELContextListener(javax.el.ELContextListener listener)

Overrides:
addELContextListener in class javax.faces.application.Application

addELResolver

public void addELResolver(javax.el.ELResolver resolver)

Overrides:
addELResolver in class javax.faces.application.Application

createComponent

public javax.faces.component.UIComponent createComponent(javax.el.ValueExpression expression,
                                                         javax.faces.context.FacesContext context,
                                                         String componentType)

Overrides:
createComponent in class javax.faces.application.Application

evaluateExpressionGet

public Object evaluateExpressionGet(javax.faces.context.FacesContext context,
                                    String expression,
                                    Class expectedType)
                             throws javax.el.ELException

Overrides:
evaluateExpressionGet in class javax.faces.application.Application
Throws:
javax.el.ELException

getELContextListeners

public javax.el.ELContextListener[] getELContextListeners()

Overrides:
getELContextListeners in class javax.faces.application.Application

getELResolver

public javax.el.ELResolver getELResolver()

Overrides:
getELResolver in class javax.faces.application.Application

getExpressionFactory

public javax.el.ExpressionFactory getExpressionFactory()

Overrides:
getExpressionFactory in class javax.faces.application.Application

getResourceBundle

public ResourceBundle getResourceBundle(javax.faces.context.FacesContext context,
                                        String name)

Overrides:
getResourceBundle in class javax.faces.application.Application

removeELContextListener

public void removeELContextListener(javax.el.ELContextListener listener)

Overrides:
removeELContextListener in class javax.faces.application.Application


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