Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ui.web.jsf
Class MockFacesContext.MockApplication

java.lang.Object
  extended by javax.faces.application.Application
      extended by org.nuxeo.ecm.platform.ui.web.jsf.MockFacesContext.MockApplication
Enclosing class:
MockFacesContext

public class MockFacesContext.MockApplication
extends Application


Constructor Summary
MockFacesContext.MockApplication()
           
 
Method Summary
 void addComponent(String componentType, String componentClass)
           
 void addConverter(Class targetClass, String converterClass)
           
 void addConverter(String converterId, String converterClass)
           
 void addValidator(String validatorId, String validatorClass)
           
 UIComponent createComponent(String componentType)
           
 UIComponent createComponent(ValueBinding componentBinding, FacesContext context, String componentType)
           
 Converter createConverter(Class targetClass)
           
 Converter createConverter(String converterId)
           
 MethodBinding createMethodBinding(String ref, Class[] params)
           
 Validator createValidator(String validatorId)
           
 ValueBinding createValueBinding(String ref)
           
 Object evaluateExpressionGet(FacesContext context, String expression, Class expectedType)
           
 ActionListener getActionListener()
           
 Iterator<String> getComponentTypes()
           
 Iterator<String> getConverterIds()
           
 Iterator<Class> getConverterTypes()
           
 Locale getDefaultLocale()
           
 String getDefaultRenderKitId()
           
 String getMessageBundle()
           
 NavigationHandler getNavigationHandler()
           
 PropertyResolver getPropertyResolver()
           
 StateManager getStateManager()
           
 Iterator<Locale> getSupportedLocales()
           
 Iterator<String> getValidatorIds()
           
 VariableResolver getVariableResolver()
           
 ViewHandler getViewHandler()
           
 void setActionListener(ActionListener listener)
           
 void setDefaultLocale(Locale locale)
           
 void setDefaultRenderKitId(String renderKitId)
           
 void setMessageBundle(String bundle)
           
 void setNavigationHandler(NavigationHandler handler)
           
 void setPropertyResolver(PropertyResolver resolver)
           
 void setStateManager(StateManager manager)
           
 void setSupportedLocales(Collection<Locale> locales)
           
 void setVariableResolver(VariableResolver resolver)
           
 void setViewHandler(ViewHandler handler)
           
 
Methods inherited from class javax.faces.application.Application
addELContextListener, addELResolver, createComponent, getELContextListeners, getELResolver, getExpressionFactory, getResourceBundle, removeELContextListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFacesContext.MockApplication

public MockFacesContext.MockApplication()
Method Detail

evaluateExpressionGet

public Object evaluateExpressionGet(FacesContext context,
                                    String expression,
                                    Class expectedType)
                             throws ELException
Overrides:
evaluateExpressionGet in class Application
Throws:
ELException

addComponent

public void addComponent(String componentType,
                         String componentClass)
Specified by:
addComponent in class Application

addConverter

public void addConverter(Class targetClass,
                         String converterClass)
Specified by:
addConverter in class Application

addConverter

public void addConverter(String converterId,
                         String converterClass)
Specified by:
addConverter in class Application

addValidator

public void addValidator(String validatorId,
                         String validatorClass)
Specified by:
addValidator in class Application

createComponent

public UIComponent createComponent(String componentType)
                            throws FacesException
Specified by:
createComponent in class Application
Throws:
FacesException

createComponent

public UIComponent createComponent(ValueBinding componentBinding,
                                   FacesContext context,
                                   String componentType)
                            throws FacesException
Specified by:
createComponent in class Application
Throws:
FacesException

createConverter

public Converter createConverter(Class targetClass)
Specified by:
createConverter in class Application

createConverter

public Converter createConverter(String converterId)
Specified by:
createConverter in class Application

createMethodBinding

public MethodBinding createMethodBinding(String ref,
                                         Class[] params)
                                  throws ReferenceSyntaxException
Specified by:
createMethodBinding in class Application
Throws:
ReferenceSyntaxException

createValidator

public Validator createValidator(String validatorId)
                          throws FacesException
Specified by:
createValidator in class Application
Throws:
FacesException

createValueBinding

public ValueBinding createValueBinding(String ref)
                                throws ReferenceSyntaxException
Specified by:
createValueBinding in class Application
Throws:
ReferenceSyntaxException

getActionListener

public ActionListener getActionListener()
Specified by:
getActionListener in class Application

getComponentTypes

public Iterator<String> getComponentTypes()
Specified by:
getComponentTypes in class Application

getConverterIds

public Iterator<String> getConverterIds()
Specified by:
getConverterIds in class Application

getConverterTypes

public Iterator<Class> getConverterTypes()
Specified by:
getConverterTypes in class Application

getDefaultLocale

public Locale getDefaultLocale()
Specified by:
getDefaultLocale in class Application

getDefaultRenderKitId

public String getDefaultRenderKitId()
Specified by:
getDefaultRenderKitId in class Application

getMessageBundle

public String getMessageBundle()
Specified by:
getMessageBundle in class Application

getNavigationHandler

public NavigationHandler getNavigationHandler()
Specified by:
getNavigationHandler in class Application

getPropertyResolver

public PropertyResolver getPropertyResolver()
Specified by:
getPropertyResolver in class Application

getStateManager

public StateManager getStateManager()
Specified by:
getStateManager in class Application

getSupportedLocales

public Iterator<Locale> getSupportedLocales()
Specified by:
getSupportedLocales in class Application

getValidatorIds

public Iterator<String> getValidatorIds()
Specified by:
getValidatorIds in class Application

getVariableResolver

public VariableResolver getVariableResolver()
Specified by:
getVariableResolver in class Application

getViewHandler

public ViewHandler getViewHandler()
Specified by:
getViewHandler in class Application

setActionListener

public void setActionListener(ActionListener listener)
Specified by:
setActionListener in class Application

setDefaultLocale

public void setDefaultLocale(Locale locale)
Specified by:
setDefaultLocale in class Application

setDefaultRenderKitId

public void setDefaultRenderKitId(String renderKitId)
Specified by:
setDefaultRenderKitId in class Application

setMessageBundle

public void setMessageBundle(String bundle)
Specified by:
setMessageBundle in class Application

setNavigationHandler

public void setNavigationHandler(NavigationHandler handler)
Specified by:
setNavigationHandler in class Application

setPropertyResolver

public void setPropertyResolver(PropertyResolver resolver)
Specified by:
setPropertyResolver in class Application

setStateManager

public void setStateManager(StateManager manager)
Specified by:
setStateManager in class Application

setSupportedLocales

public void setSupportedLocales(Collection<Locale> locales)
Specified by:
setSupportedLocales in class Application

setVariableResolver

public void setVariableResolver(VariableResolver resolver)
Specified by:
setVariableResolver in class Application

setViewHandler

public void setViewHandler(ViewHandler handler)
Specified by:
setViewHandler in class Application

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.