public class MockApplication12 extends MockApplication
Mock implementation of ExternalContext
that includes the semantics
added by JavaServer Faces 1.2.
Constructor and Description |
---|
MockApplication12()
Construct a default instance.
|
Modifier and Type | Method and Description |
---|---|
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) |
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
public void addResourceBundle(String name, ResourceBundle bundle)
Add the specified resource bundle to those associated with this application.
name
- Name under which to add this resource bundlebundle
- ResourceBundle to addpublic Map getResourceBundles()
Return a Map
of the resource bundles configured
for this application, keyed by name.
public void addELContextListener(javax.el.ELContextListener listener)
addELContextListener
in class javax.faces.application.Application
public void addELResolver(javax.el.ELResolver resolver)
addELResolver
in class javax.faces.application.Application
public javax.faces.component.UIComponent createComponent(javax.el.ValueExpression expression, javax.faces.context.FacesContext context, String componentType)
createComponent
in class javax.faces.application.Application
public Object evaluateExpressionGet(javax.faces.context.FacesContext context, String expression, Class expectedType) throws javax.el.ELException
evaluateExpressionGet
in class javax.faces.application.Application
javax.el.ELException
public javax.el.ELContextListener[] getELContextListeners()
getELContextListeners
in class javax.faces.application.Application
public javax.el.ELResolver getELResolver()
getELResolver
in class javax.faces.application.Application
public javax.el.ExpressionFactory getExpressionFactory()
getExpressionFactory
in class javax.faces.application.Application
public ResourceBundle getResourceBundle(javax.faces.context.FacesContext context, String name)
getResourceBundle
in class javax.faces.application.Application
public void removeELContextListener(javax.el.ELContextListener listener)
removeELContextListener
in class javax.faces.application.Application
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.