Class ApplicationWrapper
- java.lang.Object
-
- javax.faces.application.Application
-
- javax.faces.application.ApplicationWrapper
-
- All Implemented Interfaces:
FacesWrapper<Application>
public abstract class ApplicationWrapper extends Application implements FacesWrapper<Application>
Provides a simple implementation of
Applicationthat can be subclassed by developers wishing to provide specialized behavior to an existingApplicationinstance. The default implementation of all methods is to call through to the wrappedApplication.Usage: extend this class and override
getWrapped()to return the instance we are wrapping.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ApplicationWrapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddBehavior(java.lang.String behaviorId, java.lang.String behaviorClass)The default behavior of this method is to callApplication.addBehavior(String, String)on the wrappedApplicationobject.voidaddComponent(java.lang.String componentType, java.lang.String componentClass)The default behavior of this method is to callApplication.addComponent(String, String)on the wrappedApplicationobject.voidaddConverter(java.lang.Class<?> targetClass, java.lang.String converterClass)The default behavior of this method is to callApplication.addConverter(Class, String)on the wrappedApplicationobject.voidaddConverter(java.lang.String converterId, java.lang.String converterClass)The default behavior of this method is to callApplication.addConverter(String, String)on the wrappedApplicationobject.voidaddDefaultValidatorId(java.lang.String validatorId)The default behavior of this method is to callApplication.addDefaultValidatorId(String)on the wrappedApplicationobject.voidaddELContextListener(javax.el.ELContextListener listener)The default behavior of this method is to callApplication.addELContextListener(javax.el.ELContextListener)on the wrappedApplicationobject.voidaddELResolver(javax.el.ELResolver resolver)The default behavior of this method is to callApplication.addELResolver(javax.el.ELResolver)on the wrappedApplicationobject.voidaddValidator(java.lang.String validatorId, java.lang.String validatorClass)The default behavior of this method is to callApplication.addValidator(String, String)on the wrappedApplicationobject.BehaviorcreateBehavior(java.lang.String behaviorId)The default behavior of this method is to callApplication.createBehavior(String)on the wrappedApplicationobject.UIComponentcreateComponent(java.lang.String componentType)The default behavior of this method is to callApplication.createComponent(String)on the wrappedApplicationobject.UIComponentcreateComponent(javax.el.ValueExpression componentExpression, FacesContext context, java.lang.String componentType)The default behavior of this method is to callApplication.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String)on the wrappedApplicationobject.UIComponentcreateComponent(javax.el.ValueExpression componentExpression, FacesContext context, java.lang.String componentType, java.lang.String rendererType)The default behavior of this method is to callApplication.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String, String)on the wrappedApplicationobject.UIComponentcreateComponent(FacesContext context, java.lang.String componentType, java.lang.String rendererType)The default behavior of this method is to callApplication.createComponent(javax.faces.context.FacesContext, String, String)on the wrappedApplicationobject.UIComponentcreateComponent(FacesContext context, Resource componentResource)The default behavior of this method is to callApplication.createComponent(javax.faces.context.FacesContext, Resource)on the wrappedApplicationobject.UIComponentcreateComponent(ValueBinding componentBinding, FacesContext context, java.lang.String componentType)Deprecated.See superclass for alternative.ConvertercreateConverter(java.lang.Class<?> targetClass)The default behavior of this method is to callApplication.createConverter(Class)on the wrappedApplicationobject.ConvertercreateConverter(java.lang.String converterId)The default behavior of this method is to callApplication.createConverter(String)on the wrappedApplicationobject.MethodBindingcreateMethodBinding(java.lang.String ref, java.lang.Class<?>[] params)Deprecated.See superclass for alternative.ValidatorcreateValidator(java.lang.String validatorId)The default behavior of this method is to callApplication.createValidator(String)on the wrappedApplicationobject.ValueBindingcreateValueBinding(java.lang.String ref)The default behavior of this method is to callApplication.createValueBinding(String)on the wrappedApplicationobject.<T> TevaluateExpressionGet(FacesContext context, java.lang.String expression, java.lang.Class<? extends T> expectedType)Deprecated.See superclass for alternative.ActionListenergetActionListener()The default behavior of this method is to callApplication.getActionListener()on the wrappedApplicationobject.java.util.Iterator<java.lang.String>getBehaviorIds()The default behavior of this method is to callApplication.getBehaviorIds()on the wrappedApplicationobject.java.util.Iterator<java.lang.String>getComponentTypes()The default behavior of this method is to callApplication.getComponentTypes()on the wrappedApplicationobject.java.util.Iterator<java.lang.String>getConverterIds()The default behavior of this method is to callApplication.getConverterIds()on the wrappedApplicationobject.java.util.Iterator<java.lang.Class<?>>getConverterTypes()The default behavior of this method is to callApplication.getConverterTypes()on the wrappedApplicationobject.java.util.LocalegetDefaultLocale()The default behavior of this method is to callApplication.getDefaultLocale()on the wrappedApplicationobject.java.lang.StringgetDefaultRenderKitId()The default behavior of this method is to callApplication.getDefaultRenderKitId()on the wrappedApplicationobject.java.util.Map<java.lang.String,java.lang.String>getDefaultValidatorInfo()The default behavior of this method is to callApplication.getDefaultValidatorInfo()on the wrappedApplicationobject.javax.el.ELContextListener[]getELContextListeners()The default behavior of this method is to callApplication.getELContextListeners()on the wrappedApplicationobject.javax.el.ELResolvergetELResolver()The default behavior of this method is to callApplication.getELResolver()on the wrappedApplicationobject.javax.el.ExpressionFactorygetExpressionFactory()The default behavior of this method is to callApplication.getExpressionFactory()on the wrappedApplicationobject.FlowHandlergetFlowHandler()Return the thread-safe singletonFlowHandlerfor this application.java.lang.StringgetMessageBundle()The default behavior of this method is to callApplication.getMessageBundle()on the wrappedApplicationobject.NavigationHandlergetNavigationHandler()The default behavior of this method is to callApplication.getNavigationHandler()on the wrappedApplicationobject.ProjectStagegetProjectStage()The default behavior of this method is to callApplication.getProjectStage()on the wrappedApplicationobject.PropertyResolvergetPropertyResolver()Deprecated.See superclass for alternative.java.util.ResourceBundlegetResourceBundle(FacesContext ctx, java.lang.String name)The default behavior of this method is to callApplication.getResourceBundle(javax.faces.context.FacesContext, String)on the wrappedApplicationobject.ResourceHandlergetResourceHandler()The default behavior of this method is to callApplication.getResourceHandler()on the wrappedApplicationobject.StateManagergetStateManager()The default behavior of this method is to callApplication.getStateManager()on the wrappedApplicationobject.java.util.Iterator<java.util.Locale>getSupportedLocales()The default behavior of this method is to callApplication.getSupportedLocales()on the wrappedApplicationobject.java.util.Iterator<java.lang.String>getValidatorIds()The default behavior of this method is to callApplication.getValidatorIds()on the wrappedApplicationobject.VariableResolvergetVariableResolver()Deprecated.See superclass for alternative.ViewHandlergetViewHandler()The default behavior of this method is to callApplication.getViewHandler()on the wrappedApplicationobject.abstract ApplicationgetWrapped()A class that implements this interface uses this method to return an instance of the class being wrapped.voidpublishEvent(FacesContext context, java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceBaseType, java.lang.Object source)The default behavior of this method is to callApplication.publishEvent(javax.faces.context.FacesContext, Class, Class, Object)on the wrappedApplicationobject.voidpublishEvent(FacesContext context, java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Object source)The default behavior of this method is to callApplication.publishEvent(javax.faces.context.FacesContext, Class, Object)on the wrappedApplicationobject.voidremoveELContextListener(javax.el.ELContextListener listener)The default behavior of this method is to callApplication.removeELContextListener(javax.el.ELContextListener)on the wrappedApplicationobject.voidsetActionListener(ActionListener listener)The default behavior of this method is to callApplication.setActionListener(javax.faces.event.ActionListener)on the wrappedApplicationobject.voidsetDefaultLocale(java.util.Locale locale)The default behavior of this method is to callApplication.setDefaultLocale(java.util.Locale)on the wrappedApplicationobject.voidsetDefaultRenderKitId(java.lang.String renderKitId)The default behavior of this method is to callApplication.setDefaultRenderKitId(String)on the wrappedApplicationobject.voidsetFlowHandler(FlowHandler newHandler)Set theFlowHandlerinstance used by theNavigationHandlerto satisfy the requirements of the faces flows feature.voidsetMessageBundle(java.lang.String bundle)The default behavior of this method is to callApplication.setMessageBundle(String)on the wrappedApplicationobject.voidsetNavigationHandler(NavigationHandler handler)The default behavior of this method is to callApplication.setNavigationHandler(NavigationHandler)on the wrappedApplicationobject.voidsetPropertyResolver(PropertyResolver resolver)Deprecated.See superclass for alternative.voidsetResourceHandler(ResourceHandler resourceHandler)The default behavior of this method is to callApplication.setResourceHandler(ResourceHandler)on the wrappedApplicationobject.voidsetStateManager(StateManager manager)The default behavior of this method is to callApplication.setStateManager(StateManager)on the wrappedApplicationobject.voidsetSupportedLocales(java.util.Collection<java.util.Locale> locales)The default behavior of this method is to callApplication.setSupportedLocales(java.util.Collection)on the wrappedApplicationobject.voidsetVariableResolver(VariableResolver resolver)Deprecated.See superclass for alternative.voidsetViewHandler(ViewHandler handler)The default behavior of this method is to callApplication.setViewHandler(ViewHandler)on the wrappedApplicationobject.voidsubscribeToEvent(java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, SystemEventListener listener)The default behavior of this method is to callApplication.subscribeToEvent(Class, Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.voidsubscribeToEvent(java.lang.Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)The default behavior of this method is to callApplication.subscribeToEvent(Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.voidunsubscribeFromEvent(java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, SystemEventListener listener)The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.voidunsubscribeFromEvent(java.lang.Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.
-
-
-
Method Detail
-
getWrapped
public abstract Application getWrapped()
Description copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.
- Specified by:
getWrappedin interfaceFacesWrapper<Application>
-
getActionListener
public ActionListener getActionListener()
The default behavior of this method is to call
Application.getActionListener()on the wrappedApplicationobject.- Specified by:
getActionListenerin classApplication
-
setActionListener
public void setActionListener(ActionListener listener)
The default behavior of this method is to call
Application.setActionListener(javax.faces.event.ActionListener)on the wrappedApplicationobject.- Specified by:
setActionListenerin classApplication- Parameters:
listener- The new defaultActionListener
-
getDefaultLocale
public java.util.Locale getDefaultLocale()
The default behavior of this method is to call
Application.getDefaultLocale()on the wrappedApplicationobject.- Specified by:
getDefaultLocalein classApplication
-
setDefaultLocale
public void setDefaultLocale(java.util.Locale locale)
The default behavior of this method is to call
Application.setDefaultLocale(java.util.Locale)on the wrappedApplicationobject.- Specified by:
setDefaultLocalein classApplication- Parameters:
locale- The new defaultLocale
-
getDefaultRenderKitId
public java.lang.String getDefaultRenderKitId()
The default behavior of this method is to call
Application.getDefaultRenderKitId()on the wrappedApplicationobject.- Specified by:
getDefaultRenderKitIdin classApplication
-
addDefaultValidatorId
public void addDefaultValidatorId(java.lang.String validatorId)
The default behavior of this method is to call
Application.addDefaultValidatorId(String)on the wrappedApplicationobject.- Overrides:
addDefaultValidatorIdin classApplication
-
getDefaultValidatorInfo
public java.util.Map<java.lang.String,java.lang.String> getDefaultValidatorInfo()
The default behavior of this method is to call
Application.getDefaultValidatorInfo()on the wrappedApplicationobject.- Overrides:
getDefaultValidatorInfoin classApplication
-
setDefaultRenderKitId
public void setDefaultRenderKitId(java.lang.String renderKitId)
The default behavior of this method is to call
Application.setDefaultRenderKitId(String)on the wrappedApplicationobject.- Specified by:
setDefaultRenderKitIdin classApplication
-
getMessageBundle
public java.lang.String getMessageBundle()
The default behavior of this method is to call
Application.getMessageBundle()on the wrappedApplicationobject.- Specified by:
getMessageBundlein classApplication
-
setMessageBundle
public void setMessageBundle(java.lang.String bundle)
The default behavior of this method is to call
Application.setMessageBundle(String)on the wrappedApplicationobject.- Specified by:
setMessageBundlein classApplication- Parameters:
bundle- Base name of the resource bundle to be used
-
getNavigationHandler
public NavigationHandler getNavigationHandler()
The default behavior of this method is to call
Application.getNavigationHandler()on the wrappedApplicationobject.- Specified by:
getNavigationHandlerin classApplication
-
setNavigationHandler
public void setNavigationHandler(NavigationHandler handler)
The default behavior of this method is to call
Application.setNavigationHandler(NavigationHandler)on the wrappedApplicationobject.- Specified by:
setNavigationHandlerin classApplication- Parameters:
handler- The newNavigationHandlerinstance
-
getPropertyResolver
@Deprecated public PropertyResolver getPropertyResolver()
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.getPropertyResolver()on the wrappedApplicationobject.- Specified by:
getPropertyResolverin classApplication
-
setPropertyResolver
@Deprecated public void setPropertyResolver(PropertyResolver resolver)
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.setPropertyResolver(javax.faces.el.PropertyResolver)on the wrappedApplicationobject.- Specified by:
setPropertyResolverin classApplication- Parameters:
resolver- The newPropertyResolverinstance
-
getVariableResolver
@Deprecated public VariableResolver getVariableResolver()
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.getVariableResolver()on the wrappedApplicationobject.- Specified by:
getVariableResolverin classApplication
-
setVariableResolver
@Deprecated public void setVariableResolver(VariableResolver resolver)
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.setVariableResolver(javax.faces.el.VariableResolver)on the wrappedApplicationobject.- Specified by:
setVariableResolverin classApplication- Parameters:
resolver- The newVariableResolverinstance
-
getViewHandler
public ViewHandler getViewHandler()
The default behavior of this method is to call
Application.getViewHandler()on the wrappedApplicationobject.- Specified by:
getViewHandlerin classApplication
-
setViewHandler
public void setViewHandler(ViewHandler handler)
The default behavior of this method is to call
Application.setViewHandler(ViewHandler)on the wrappedApplicationobject.- Specified by:
setViewHandlerin classApplication- Parameters:
handler- The newViewHandlerinstance- Throws:
java.lang.IllegalStateException- if this method is called after at least one request has been processed by theLifecycleinstance for this application.java.lang.NullPointerException- ifmanagerisnull
-
getStateManager
public StateManager getStateManager()
The default behavior of this method is to call
Application.getStateManager()on the wrappedApplicationobject.- Specified by:
getStateManagerin classApplication
-
setStateManager
public void setStateManager(StateManager manager)
The default behavior of this method is to call
Application.setStateManager(StateManager)on the wrappedApplicationobject.- Specified by:
setStateManagerin classApplication- Parameters:
manager- The newStateManagerinstance- Throws:
java.lang.IllegalStateException- if this method is called after at least one request has been processed by theLifecycleinstance for this application.java.lang.NullPointerException- ifmanagerisnull
-
addComponent
public void addComponent(java.lang.String componentType, java.lang.String componentClass)The default behavior of this method is to call
Application.addComponent(String, String)on the wrappedApplicationobject.- Specified by:
addComponentin classApplication- Parameters:
componentType- The component type to be registeredcomponentClass- The fully qualified class name of the correspondingUIComponentimplementation
-
createComponent
public UIComponent createComponent(java.lang.String componentType) throws FacesException
The default behavior of this method is to call
Application.createComponent(String)on the wrappedApplicationobject.- Specified by:
createComponentin classApplication- Parameters:
componentType- The component type for which to create and return a newUIComponentinstance- Throws:
FacesException- if aUIComponentof the specified type cannot be created
-
createComponent
@Deprecated public UIComponent createComponent(ValueBinding componentBinding, FacesContext context, java.lang.String componentType) throws FacesException
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.createComponent(javax.faces.el.ValueBinding, javax.faces.context.FacesContext, String)on the wrappedApplicationobject.- Specified by:
createComponentin classApplication- Parameters:
componentBinding-ValueBindingrepresenting a component value binding expression (typically specified by thecomponentattribute of a custom tag)context-FacesContextfor the current requestcomponentType- Component type to create if theValueBindingdoes not return a component instance- Throws:
FacesException- if aUIComponentcannot be created
-
getComponentTypes
public java.util.Iterator<java.lang.String> getComponentTypes()
The default behavior of this method is to call
Application.getComponentTypes()on the wrappedApplicationobject.- Specified by:
getComponentTypesin classApplication
-
addConverter
public void addConverter(java.lang.String converterId, java.lang.String converterClass)The default behavior of this method is to call
Application.addConverter(String, String)on the wrappedApplicationobject.- Specified by:
addConverterin classApplication- Parameters:
converterId- The converter id to be registeredconverterClass- The fully qualified class name of the correspondingConverterimplementation
-
addConverter
public void addConverter(java.lang.Class<?> targetClass, java.lang.String converterClass)The default behavior of this method is to call
Application.addConverter(Class, String)on the wrappedApplicationobject.- Specified by:
addConverterin classApplication- Parameters:
targetClass- The class for which this converter is registeredconverterClass- The fully qualified class name of the correspondingConverterimplementation
-
createConverter
public Converter createConverter(java.lang.String converterId)
The default behavior of this method is to call
Application.createConverter(String)on the wrappedApplicationobject.- Specified by:
createConverterin classApplication- Parameters:
converterId- The converter id for which to create and return a newConverterinstance
-
createConverter
public Converter createConverter(java.lang.Class<?> targetClass)
The default behavior of this method is to call
Application.createConverter(Class)on the wrappedApplicationobject.- Specified by:
createConverterin classApplication- Parameters:
targetClass- Target class for which to return aConverter
-
getConverterIds
public java.util.Iterator<java.lang.String> getConverterIds()
The default behavior of this method is to call
Application.getConverterIds()on the wrappedApplicationobject.- Specified by:
getConverterIdsin classApplication
-
getConverterTypes
public java.util.Iterator<java.lang.Class<?>> getConverterTypes()
The default behavior of this method is to call
Application.getConverterTypes()on the wrappedApplicationobject.- Specified by:
getConverterTypesin classApplication
-
createMethodBinding
@Deprecated public MethodBinding createMethodBinding(java.lang.String ref, java.lang.Class<?>[] params) throws ReferenceSyntaxException
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.createMethodBinding(String, Class[])on the wrappedApplicationobject.- Specified by:
createMethodBindingin classApplication- Parameters:
ref- Method binding expression for which to return aMethodBindinginstanceparams- Parameter signatures that must be compatible with those of the method to be invoked, or a zero-length array ornullfor a method that takes no parameters- Throws:
ReferenceSyntaxException- if the specifiedrefhas invalid syntax
-
getSupportedLocales
public java.util.Iterator<java.util.Locale> getSupportedLocales()
The default behavior of this method is to call
Application.getSupportedLocales()on the wrappedApplicationobject.- Specified by:
getSupportedLocalesin classApplication
-
setSupportedLocales
public void setSupportedLocales(java.util.Collection<java.util.Locale> locales)
The default behavior of this method is to call
Application.setSupportedLocales(java.util.Collection)on the wrappedApplicationobject.- Specified by:
setSupportedLocalesin classApplication- Parameters:
locales- The set of supportedLocales for this application
-
addBehavior
public void addBehavior(java.lang.String behaviorId, java.lang.String behaviorClass)The default behavior of this method is to call
Application.addBehavior(String, String)on the wrappedApplicationobject.- Overrides:
addBehaviorin classApplication- Parameters:
behaviorId- The behavior id to be registeredbehaviorClass- The fully qualified class name of the correspondingBehaviorimplementation
-
createBehavior
public Behavior createBehavior(java.lang.String behaviorId) throws FacesException
The default behavior of this method is to call
Application.createBehavior(String)on the wrappedApplicationobject.- Overrides:
createBehaviorin classApplication- Parameters:
behaviorId- The behavior id for which to create and return a newBehaviorinstance- Throws:
FacesException- if theBehaviorcannot be created
-
getBehaviorIds
public java.util.Iterator<java.lang.String> getBehaviorIds()
The default behavior of this method is to call
Application.getBehaviorIds()on the wrappedApplicationobject.- Overrides:
getBehaviorIdsin classApplication
-
addValidator
public void addValidator(java.lang.String validatorId, java.lang.String validatorClass)The default behavior of this method is to call
Application.addValidator(String, String)on the wrappedApplicationobject.- Specified by:
addValidatorin classApplication- Parameters:
validatorId- The validator id to be registeredvalidatorClass- The fully qualified class name of the correspondingValidatorimplementation
-
createValidator
public Validator createValidator(java.lang.String validatorId) throws FacesException
The default behavior of this method is to call
Application.createValidator(String)on the wrappedApplicationobject.- Specified by:
createValidatorin classApplication- Parameters:
validatorId- The validator id for which to create and return a newValidatorinstance- Throws:
FacesException- if aValidatorof the specified id cannot be created
-
getValidatorIds
public java.util.Iterator<java.lang.String> getValidatorIds()
The default behavior of this method is to call
Application.getValidatorIds()on the wrappedApplicationobject.- Specified by:
getValidatorIdsin classApplication
-
createValueBinding
public ValueBinding createValueBinding(java.lang.String ref) throws ReferenceSyntaxException
The default behavior of this method is to call
Application.createValueBinding(String)on the wrappedApplicationobject.- Specified by:
createValueBindingin classApplication- Parameters:
ref- Value binding expression for which to return aValueBindinginstance- Throws:
ReferenceSyntaxException- if the specifiedrefhas invalid syntax
-
getResourceHandler
public ResourceHandler getResourceHandler()
The default behavior of this method is to call
Application.getResourceHandler()on the wrappedApplicationobject.- Overrides:
getResourceHandlerin classApplication
-
setResourceHandler
public void setResourceHandler(ResourceHandler resourceHandler)
The default behavior of this method is to call
Application.setResourceHandler(ResourceHandler)on the wrappedApplicationobject.- Overrides:
setResourceHandlerin classApplication- Parameters:
resourceHandler- The newResourceHandlerinstance- Throws:
java.lang.IllegalStateException- if this method is called after at least one request has been processed by theLifecycleinstance for this application.java.lang.NullPointerException- ifresourceHandlerisnull
-
getResourceBundle
public java.util.ResourceBundle getResourceBundle(FacesContext ctx, java.lang.String name)
The default behavior of this method is to call
Application.getResourceBundle(javax.faces.context.FacesContext, String)on the wrappedApplicationobject.- Overrides:
getResourceBundlein classApplication
-
getProjectStage
public ProjectStage getProjectStage()
The default behavior of this method is to call
Application.getProjectStage()on the wrappedApplicationobject.- Overrides:
getProjectStagein classApplication
-
addELResolver
public void addELResolver(javax.el.ELResolver resolver)
The default behavior of this method is to call
Application.addELResolver(javax.el.ELResolver)on the wrappedApplicationobject.- Overrides:
addELResolverin classApplication- Throws:
java.lang.IllegalStateException- if called after the first request to theFacesServlethas been serviced.
-
getELResolver
public javax.el.ELResolver getELResolver()
The default behavior of this method is to call
Application.getELResolver()on the wrappedApplicationobject.- Overrides:
getELResolverin classApplication
-
createComponent
public UIComponent createComponent(javax.el.ValueExpression componentExpression, FacesContext context, java.lang.String componentType) throws FacesException
The default behavior of this method is to call
Application.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String)on the wrappedApplicationobject.- Overrides:
createComponentin classApplication- Parameters:
componentExpression-ValueExpressionrepresenting a component value expression (typically specified by thecomponentattribute of a custom tag)context-FacesContextfor the current requestcomponentType- Component type to create if theValueExpressiondoes not return a component instance- Throws:
FacesException- if aUIComponentcannot be created
-
createComponent
public UIComponent createComponent(javax.el.ValueExpression componentExpression, FacesContext context, java.lang.String componentType, java.lang.String rendererType)
The default behavior of this method is to call
Application.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String, String)on the wrappedApplicationobject.- Overrides:
createComponentin classApplication- Parameters:
componentExpression-ValueExpressionrepresenting a component value expression (typically specified by thecomponentattribute of a custom tag)context-FacesContextfor the current requestcomponentType- Component type to create if theValueExpressiondoes not return a component instancerendererType- The renderer-type of theRendererthat will render this component. Anullvalue must be accepted for this parameter.
-
createComponent
public UIComponent createComponent(FacesContext context, java.lang.String componentType, java.lang.String rendererType)
The default behavior of this method is to call
Application.createComponent(javax.faces.context.FacesContext, String, String)on the wrappedApplicationobject.- Overrides:
createComponentin classApplication- Parameters:
context-FacesContextfor the current requestcomponentType- Component type to createrendererType- The renderer-type of theRendererthat will render this component. Anullvalue must be accepted for this parameter.
-
createComponent
public UIComponent createComponent(FacesContext context, Resource componentResource)
The default behavior of this method is to call
Application.createComponent(javax.faces.context.FacesContext, Resource)on the wrappedApplicationobject.- Overrides:
createComponentin classApplication- Parameters:
context-FacesContextfor the current requestcomponentResource- AResourcethat points to a source file that provides an implementation of a component.
-
getExpressionFactory
public javax.el.ExpressionFactory getExpressionFactory()
The default behavior of this method is to call
Application.getExpressionFactory()on the wrappedApplicationobject.- Overrides:
getExpressionFactoryin classApplication
-
getFlowHandler
public FlowHandler getFlowHandler()
Description copied from class:ApplicationReturn the thread-safe singleton
FlowHandlerfor this application. For implementations declaring compliance with version 2.2 of the specification, this method must never returnnull, even if the application has no flows. This is necessary to enable dynamic flow creation during the application's lifetime.All implementations that declare compliance with version 2.2 of the specification must implement this method. For the purpose of backward compatibility with environments that extend
Applicationbut do not override this method, an implementation is provided that returnsnull. Due to the decoratable nature ofApplication, code calling this method should always check for anullreturn.- Overrides:
getFlowHandlerin classApplication
-
setFlowHandler
public void setFlowHandler(FlowHandler newHandler)
Description copied from class:ApplicationSet the
FlowHandlerinstance used by theNavigationHandlerto satisfy the requirements of the faces flows feature.- Overrides:
setFlowHandlerin classApplication
-
evaluateExpressionGet
@Deprecated public <T> T evaluateExpressionGet(FacesContext context, java.lang.String expression, java.lang.Class<? extends T> expectedType) throws javax.el.ELException
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.evaluateExpressionGet(javax.faces.context.FacesContext, String, Class)on the wrappedApplicationobject.- Overrides:
evaluateExpressionGetin classApplication- Throws:
javax.el.ELException
-
addELContextListener
public void addELContextListener(javax.el.ELContextListener listener)
The default behavior of this method is to call
Application.addELContextListener(javax.el.ELContextListener)on the wrappedApplicationobject.- Overrides:
addELContextListenerin classApplication
-
removeELContextListener
public void removeELContextListener(javax.el.ELContextListener listener)
The default behavior of this method is to call
Application.removeELContextListener(javax.el.ELContextListener)on the wrappedApplicationobject.- Overrides:
removeELContextListenerin classApplication
-
getELContextListeners
public javax.el.ELContextListener[] getELContextListeners()
The default behavior of this method is to call
Application.getELContextListeners()on the wrappedApplicationobject.- Overrides:
getELContextListenersin classApplication
-
publishEvent
public void publishEvent(FacesContext context, java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Object source)
The default behavior of this method is to call
Application.publishEvent(javax.faces.context.FacesContext, Class, Object)on the wrappedApplicationobject.- Overrides:
publishEventin classApplication- Parameters:
context- theFacesContextfor the current requestsystemEventClass- TheClassof event that is being published.source- The source for the event of typesystemEventClass.
-
publishEvent
public void publishEvent(FacesContext context, java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceBaseType, java.lang.Object source)
The default behavior of this method is to call
Application.publishEvent(javax.faces.context.FacesContext, Class, Class, Object)on the wrappedApplicationobject.- Overrides:
publishEventin classApplication- Parameters:
context- theFacesContextfor the current requestsystemEventClass- TheClassof event that is being published.sourceBaseType- TheClassof the source event that must be used to lookup the listener to which this event must be published. If this argument isnullthe return fromsource.getClass()must be used as thesourceBaseType.source- The source for the event of typesystemEventClass.
-
subscribeToEvent
public void subscribeToEvent(java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, SystemEventListener listener)
The default behavior of this method is to call
Application.subscribeToEvent(Class, Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.- Overrides:
subscribeToEventin classApplication- Parameters:
systemEventClass- theClassof event for whichlistenermust be fired.sourceClass- theClassof the instance which causes events of typesystemEventClassto be fired. May benull.listener- the implementation ofSystemEventListenerwhoseSystemEventListener.processEvent(javax.faces.event.SystemEvent)method must be called when events of typesystemEventClassare fired.
-
subscribeToEvent
public void subscribeToEvent(java.lang.Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)
The default behavior of this method is to call
Application.subscribeToEvent(Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.- Overrides:
subscribeToEventin classApplication- Parameters:
systemEventClass- theClassof event for whichlistenermust be fired.listener- the implementation ofSystemEventListenerwhoseSystemEventListener.processEvent(javax.faces.event.SystemEvent)method must be called when events of typesystemEventClassare fired.See
Application.subscribeToEvent(java.lang.Class,java.lang.Class,javax.faces.event.SystemEventListener)for an additional requirement regarding when it is valid to call this method.
-
unsubscribeFromEvent
public void unsubscribeFromEvent(java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, SystemEventListener listener)
The default behavior of this method is to call
Application.unsubscribeFromEvent(Class, Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.- Overrides:
unsubscribeFromEventin classApplication- Parameters:
systemEventClass- theClassof event for whichlistenermust be fired.sourceClass- theClassof the instance which causes events of typesystemEventClassto be fired. May benull.listener- the implementation ofSystemEventListenerto remove from the internal data structure.
-
unsubscribeFromEvent
public void unsubscribeFromEvent(java.lang.Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)
The default behavior of this method is to call
Application.unsubscribeFromEvent(Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.- Overrides:
unsubscribeFromEventin classApplication- Parameters:
systemEventClass- theClassof event for whichlistenermust be fired.listener- the implementation ofSystemEventListenerto remove from the internal data structure.
-
-