org.apache.myfaces.test.mock
Class MockApplication12

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

public class MockApplication12
extends MockApplication

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

$Id: MockApplication12.java 1128241 2011-05-27 10:27:34Z rdebusscher $

Since:
1.0.0

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)
          
 void setExpressionFactory(javax.el.ExpressionFactory expressionFactory)
          Set the current ExpressionFactory to be returned by this mock object
 
Methods inherited from class org.apache.myfaces.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.


setExpressionFactory

public void setExpressionFactory(javax.el.ExpressionFactory expressionFactory)
Set the current ExpressionFactory to be returned by this mock object

Parameters:
expressionFactory -

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 © 2011 The Apache Software Foundation. All Rights Reserved.