public class MockApplication extends javax.faces.application.Application
MockFacesContext
, and providing an
ExternalContext
implemented by MockExternalContext
Constructor and Description |
---|
MockApplication() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(String componentType,
String componentClass) |
void |
addConverter(Class targetClass,
String converterClass) |
void |
addConverter(String converterId,
String converterClass) |
void |
addValidator(String validatorId,
String validatorClass) |
javax.faces.component.UIComponent |
createComponent(String componentType) |
javax.faces.component.UIComponent |
createComponent(javax.faces.el.ValueBinding componentBinding,
javax.faces.context.FacesContext context,
String componentType) |
javax.faces.convert.Converter |
createConverter(Class targetClass) |
javax.faces.convert.Converter |
createConverter(String converterId) |
javax.faces.el.MethodBinding |
createMethodBinding(String ref,
Class[] params) |
javax.faces.validator.Validator |
createValidator(String validatorId) |
javax.faces.el.ValueBinding |
createValueBinding(String ref) |
Object |
evaluateExpressionGet(javax.faces.context.FacesContext context,
String expression,
Class expectedType) |
javax.faces.event.ActionListener |
getActionListener() |
Iterator<String> |
getComponentTypes() |
Iterator<String> |
getConverterIds() |
Iterator<Class<?>> |
getConverterTypes() |
Locale |
getDefaultLocale() |
String |
getDefaultRenderKitId() |
javax.el.ExpressionFactory |
getExpressionFactory() |
String |
getMessageBundle() |
javax.faces.application.NavigationHandler |
getNavigationHandler() |
javax.faces.el.PropertyResolver |
getPropertyResolver() |
javax.faces.application.StateManager |
getStateManager() |
Iterator<Locale> |
getSupportedLocales() |
Iterator<String> |
getValidatorIds() |
javax.faces.el.VariableResolver |
getVariableResolver() |
javax.faces.application.ViewHandler |
getViewHandler() |
void |
setActionListener(javax.faces.event.ActionListener listener) |
void |
setDefaultLocale(Locale locale) |
void |
setDefaultRenderKitId(String renderKitId) |
void |
setMessageBundle(String bundle) |
void |
setNavigationHandler(javax.faces.application.NavigationHandler handler) |
void |
setPropertyResolver(javax.faces.el.PropertyResolver resolver) |
void |
setStateManager(javax.faces.application.StateManager manager) |
void |
setSupportedLocales(Collection<Locale> locales) |
void |
setVariableResolver(javax.faces.el.VariableResolver resolver) |
void |
setViewHandler(javax.faces.application.ViewHandler handler) |
addBehavior, addDefaultValidatorId, addELContextListener, addELResolver, createBehavior, createComponent, createComponent, createComponent, createComponent, getBehaviorIds, getDefaultValidatorInfo, getELContextListeners, getELResolver, getFlowHandler, getProjectStage, getResourceBundle, getResourceHandler, publishEvent, publishEvent, removeELContextListener, setFlowHandler, setResourceHandler, subscribeToEvent, subscribeToEvent, unsubscribeFromEvent, unsubscribeFromEvent
public MockApplication()
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 void addComponent(String componentType, String componentClass)
addComponent
in class javax.faces.application.Application
public void addConverter(Class targetClass, String converterClass)
addConverter
in class javax.faces.application.Application
public void addConverter(String converterId, String converterClass)
addConverter
in class javax.faces.application.Application
public void addValidator(String validatorId, String validatorClass)
addValidator
in class javax.faces.application.Application
public javax.faces.component.UIComponent createComponent(String componentType) throws javax.faces.FacesException
createComponent
in class javax.faces.application.Application
javax.faces.FacesException
public javax.faces.component.UIComponent createComponent(javax.faces.el.ValueBinding componentBinding, javax.faces.context.FacesContext context, String componentType) throws javax.faces.FacesException
createComponent
in class javax.faces.application.Application
javax.faces.FacesException
public javax.faces.convert.Converter createConverter(Class targetClass)
createConverter
in class javax.faces.application.Application
public javax.faces.convert.Converter createConverter(String converterId)
createConverter
in class javax.faces.application.Application
public javax.faces.el.MethodBinding createMethodBinding(String ref, Class[] params) throws javax.faces.el.ReferenceSyntaxException
createMethodBinding
in class javax.faces.application.Application
javax.faces.el.ReferenceSyntaxException
public javax.faces.validator.Validator createValidator(String validatorId) throws javax.faces.FacesException
createValidator
in class javax.faces.application.Application
javax.faces.FacesException
public javax.faces.el.ValueBinding createValueBinding(String ref) throws javax.faces.el.ReferenceSyntaxException
createValueBinding
in class javax.faces.application.Application
javax.faces.el.ReferenceSyntaxException
public javax.faces.event.ActionListener getActionListener()
getActionListener
in class javax.faces.application.Application
public Iterator<String> getComponentTypes()
getComponentTypes
in class javax.faces.application.Application
public Iterator<String> getConverterIds()
getConverterIds
in class javax.faces.application.Application
public Iterator<Class<?>> getConverterTypes()
getConverterTypes
in class javax.faces.application.Application
public Locale getDefaultLocale()
getDefaultLocale
in class javax.faces.application.Application
public String getDefaultRenderKitId()
getDefaultRenderKitId
in class javax.faces.application.Application
public String getMessageBundle()
getMessageBundle
in class javax.faces.application.Application
public javax.faces.application.NavigationHandler getNavigationHandler()
getNavigationHandler
in class javax.faces.application.Application
public javax.faces.el.PropertyResolver getPropertyResolver()
getPropertyResolver
in class javax.faces.application.Application
public javax.faces.application.StateManager getStateManager()
getStateManager
in class javax.faces.application.Application
public Iterator<Locale> getSupportedLocales()
getSupportedLocales
in class javax.faces.application.Application
public Iterator<String> getValidatorIds()
getValidatorIds
in class javax.faces.application.Application
public javax.faces.el.VariableResolver getVariableResolver()
getVariableResolver
in class javax.faces.application.Application
public javax.faces.application.ViewHandler getViewHandler()
getViewHandler
in class javax.faces.application.Application
public void setActionListener(javax.faces.event.ActionListener listener)
setActionListener
in class javax.faces.application.Application
public void setDefaultLocale(Locale locale)
setDefaultLocale
in class javax.faces.application.Application
public void setDefaultRenderKitId(String renderKitId)
setDefaultRenderKitId
in class javax.faces.application.Application
public void setMessageBundle(String bundle)
setMessageBundle
in class javax.faces.application.Application
public void setNavigationHandler(javax.faces.application.NavigationHandler handler)
setNavigationHandler
in class javax.faces.application.Application
public void setPropertyResolver(javax.faces.el.PropertyResolver resolver)
setPropertyResolver
in class javax.faces.application.Application
public void setStateManager(javax.faces.application.StateManager manager)
setStateManager
in class javax.faces.application.Application
public void setSupportedLocales(Collection<Locale> locales)
setSupportedLocales
in class javax.faces.application.Application
public void setVariableResolver(javax.faces.el.VariableResolver resolver)
setVariableResolver
in class javax.faces.application.Application
public void setViewHandler(javax.faces.application.ViewHandler handler)
setViewHandler
in class javax.faces.application.Application
public javax.el.ExpressionFactory getExpressionFactory()
getExpressionFactory
in class javax.faces.application.Application
Copyright © 2017 Nuxeo. All rights reserved.