org.apache.myfaces.test.mock
Class MockApplication20

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
              extended by org.apache.myfaces.test.mock.MockApplication20

public class MockApplication20
extends MockApplication12

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

Since:
1.0.0
Author:
Leonardo Uribe

Constructor Summary
MockApplication20()
           
 
Method Summary
 void addBehavior(String behaviorId, String behaviorClass)
           
 void addDefaultValidatorId(String validatorId)
           
 void addValidator(String validatorId, String validatorClass)
          
 javax.faces.component.behavior.Behavior createBehavior(String behaviorId)
           
 javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context, javax.faces.application.Resource componentResource)
           
 javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context, String componentType, String rendererType)
           
 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.component.UIComponent createComponent(javax.el.ValueExpression componentExpression, javax.faces.context.FacesContext facesContext, String componentType)
          
 javax.faces.component.UIComponent createComponent(javax.el.ValueExpression componentExpression, javax.faces.context.FacesContext context, String componentType, String rendererType)
           
 javax.faces.convert.Converter createConverter(String converterId)
          
 javax.faces.validator.Validator createValidator(String validatorId)
          
 Iterator<String> getBehaviorIds()
           
 Map<String,String> getDefaultValidatorInfo()
           
 javax.faces.application.ProjectStage getProjectStage()
           
 javax.faces.application.ResourceHandler getResourceHandler()
           
 void publishEvent(javax.faces.context.FacesContext facesContext, Class<? extends javax.faces.event.SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source)
           
 void publishEvent(javax.faces.context.FacesContext facesContext, Class<? extends javax.faces.event.SystemEvent> systemEventClass, Object source)
           
 void setResourceHandler(javax.faces.application.ResourceHandler resourceHandler)
           
 void subscribeToEvent(Class<? extends javax.faces.event.SystemEvent> systemEventClass, Class<?> sourceClass, javax.faces.event.SystemEventListener listener)
           
 void subscribeToEvent(Class<? extends javax.faces.event.SystemEvent> systemEventClass, javax.faces.event.SystemEventListener listener)
           
 void unsubscribeFromEvent(Class<? extends javax.faces.event.SystemEvent> systemEventClass, Class<?> sourceClass, javax.faces.event.SystemEventListener listener)
           
 void unsubscribeFromEvent(Class<? extends javax.faces.event.SystemEvent> systemEventClass, javax.faces.event.SystemEventListener listener)
           
 
Methods inherited from class org.apache.myfaces.test.mock.MockApplication12
addELContextListener, addELResolver, addResourceBundle, evaluateExpressionGet, getELContextListeners, getELResolver, getExpressionFactory, getResourceBundle, getResourceBundles, removeELContextListener, setExpressionFactory
 
Methods inherited from class org.apache.myfaces.test.mock.MockApplication
addComponent, addConverter, addConverter, createConverter, createMethodBinding, 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

MockApplication20

public MockApplication20()
Method Detail

getDefaultValidatorInfo

public Map<String,String> getDefaultValidatorInfo()
Overrides:
getDefaultValidatorInfo in class javax.faces.application.Application

publishEvent

public void publishEvent(javax.faces.context.FacesContext facesContext,
                         Class<? extends javax.faces.event.SystemEvent> systemEventClass,
                         Class<?> sourceBaseType,
                         Object source)
Overrides:
publishEvent in class javax.faces.application.Application

publishEvent

public void publishEvent(javax.faces.context.FacesContext facesContext,
                         Class<? extends javax.faces.event.SystemEvent> systemEventClass,
                         Object source)
Overrides:
publishEvent in class javax.faces.application.Application

getProjectStage

public javax.faces.application.ProjectStage getProjectStage()
Overrides:
getProjectStage in class javax.faces.application.Application

addBehavior

public void addBehavior(String behaviorId,
                        String behaviorClass)
Overrides:
addBehavior in class javax.faces.application.Application

getBehaviorIds

public Iterator<String> getBehaviorIds()
Overrides:
getBehaviorIds in class javax.faces.application.Application

createBehavior

public javax.faces.component.behavior.Behavior createBehavior(String behaviorId)
                                                       throws javax.faces.FacesException
Overrides:
createBehavior in class javax.faces.application.Application
Throws:
javax.faces.FacesException

addValidator

public void addValidator(String validatorId,
                         String validatorClass)
Description copied from class: MockApplication

Overrides:
addValidator in class MockApplication

addDefaultValidatorId

public void addDefaultValidatorId(String validatorId)
Overrides:
addDefaultValidatorId in class javax.faces.application.Application

getResourceHandler

public final javax.faces.application.ResourceHandler getResourceHandler()
Overrides:
getResourceHandler in class javax.faces.application.Application

setResourceHandler

public final void setResourceHandler(javax.faces.application.ResourceHandler resourceHandler)
Overrides:
setResourceHandler in class javax.faces.application.Application

subscribeToEvent

public void subscribeToEvent(Class<? extends javax.faces.event.SystemEvent> systemEventClass,
                             javax.faces.event.SystemEventListener listener)
Overrides:
subscribeToEvent in class javax.faces.application.Application

subscribeToEvent

public void subscribeToEvent(Class<? extends javax.faces.event.SystemEvent> systemEventClass,
                             Class<?> sourceClass,
                             javax.faces.event.SystemEventListener listener)
Overrides:
subscribeToEvent in class javax.faces.application.Application

unsubscribeFromEvent

public void unsubscribeFromEvent(Class<? extends javax.faces.event.SystemEvent> systemEventClass,
                                 javax.faces.event.SystemEventListener listener)
Overrides:
unsubscribeFromEvent in class javax.faces.application.Application

unsubscribeFromEvent

public void unsubscribeFromEvent(Class<? extends javax.faces.event.SystemEvent> systemEventClass,
                                 Class<?> sourceClass,
                                 javax.faces.event.SystemEventListener listener)
Overrides:
unsubscribeFromEvent in class javax.faces.application.Application

createComponent

public javax.faces.component.UIComponent createComponent(String componentType)
Description copied from class: MockApplication

Overrides:
createComponent in class MockApplication

createComponent

public javax.faces.component.UIComponent createComponent(javax.faces.el.ValueBinding componentBinding,
                                                         javax.faces.context.FacesContext context,
                                                         String componentType)
                                                  throws javax.faces.FacesException
Description copied from class: MockApplication

Overrides:
createComponent in class MockApplication
Throws:
javax.faces.FacesException

createComponent

public javax.faces.component.UIComponent createComponent(javax.el.ValueExpression componentExpression,
                                                         javax.faces.context.FacesContext facesContext,
                                                         String componentType)
                                                  throws javax.faces.FacesException,
                                                         NullPointerException
Description copied from class: MockApplication12

Overrides:
createComponent in class MockApplication12
Throws:
javax.faces.FacesException
NullPointerException

createComponent

public javax.faces.component.UIComponent createComponent(javax.el.ValueExpression componentExpression,
                                                         javax.faces.context.FacesContext context,
                                                         String componentType,
                                                         String rendererType)
Overrides:
createComponent in class javax.faces.application.Application

createComponent

public javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context,
                                                         String componentType,
                                                         String rendererType)
Overrides:
createComponent in class javax.faces.application.Application

createComponent

public javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context,
                                                         javax.faces.application.Resource componentResource)
Overrides:
createComponent in class javax.faces.application.Application

createConverter

public javax.faces.convert.Converter createConverter(String converterId)
Description copied from class: MockApplication

Overrides:
createConverter in class MockApplication

createValidator

public javax.faces.validator.Validator createValidator(String validatorId)
Description copied from class: MockApplication

Overrides:
createValidator in class MockApplication


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.