Class ApplicationWrapper
- All Implemented Interfaces:
FacesWrapper<Application>
Provides a simple implementation of Application that can be
subclassed by developers wishing to provide specialized behavior to an existing Application instance. The
default implementation of all methods is to call through to the wrapped Application.
Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped() to
access the instance being wrapped.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Use the other constructor taking the implementation being wrapped.ApplicationWrapper(Application wrapped) If this application has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBehavior(String behaviorId, String behaviorClass) The default behavior of this method is to callApplication.addBehavior(String, String)on the wrappedApplicationobject.voidaddComponent(String componentType, String componentClass) The default behavior of this method is to callApplication.addComponent(String, String)on the wrappedApplicationobject.voidaddConverter(Class<?> targetClass, String converterClass) The default behavior of this method is to callApplication.addConverter(Class, String)on the wrappedApplicationobject.voidaddConverter(String converterId, String converterClass) The default behavior of this method is to callApplication.addConverter(String, String)on the wrappedApplicationobject.voidaddDefaultValidatorId(String validatorId) The default behavior of this method is to callApplication.addDefaultValidatorId(String)on the wrappedApplicationobject.voidaddELContextListener(ELContextListener listener) The default behavior of this method is to callApplication.addELContextListener(jakarta.el.ELContextListener)on the wrappedApplicationobject.voidaddELResolver(ELResolver resolver) The default behavior of this method is to callApplication.addELResolver(jakarta.el.ELResolver)on the wrappedApplicationobject.voidCause the argumentresolverto be added to the head of the resolver chain.voidaddValidator(String validatorId, String validatorClass) The default behavior of this method is to callApplication.addValidator(String, String)on the wrappedApplicationobject.createBehavior(String behaviorId) The default behavior of this method is to callApplication.createBehavior(String)on the wrappedApplicationobject.createComponent(ValueExpression componentExpression, FacesContext context, String componentType) The default behavior of this method is to callApplication.createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String)on the wrappedApplicationobject.createComponent(ValueExpression componentExpression, FacesContext context, String componentType, String rendererType) The default behavior of this method is to callApplication.createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String, String)on the wrappedApplicationobject.createComponent(FacesContext context, Resource componentResource) The default behavior of this method is to callApplication.createComponent(jakarta.faces.context.FacesContext, Resource)on the wrappedApplicationobject.createComponent(FacesContext context, String componentType, String rendererType) The default behavior of this method is to callApplication.createComponent(jakarta.faces.context.FacesContext, String, String)on the wrappedApplicationobject.createComponent(ValueBinding componentBinding, FacesContext context, String componentType) Deprecated.See superclass for alternative.createComponent(String componentType) The default behavior of this method is to callApplication.createComponent(String)on the wrappedApplicationobject.createConverter(Class<?> targetClass) The default behavior of this method is to callApplication.createConverter(Class)on the wrappedApplicationobject.createConverter(String converterId) The default behavior of this method is to callApplication.createConverter(String)on the wrappedApplicationobject.createMethodBinding(String ref, Class<?>[] params) Deprecated.See superclass for alternative.createValidator(String validatorId) The default behavior of this method is to callApplication.createValidator(String)on the wrappedApplicationobject.createValueBinding(String ref) The default behavior of this method is to callApplication.createValueBinding(String)on the wrappedApplicationobject.<T> TevaluateExpressionGet(FacesContext context, String expression, Class<? extends T> expectedType) Deprecated.See superclass for alternative.The default behavior of this method is to callApplication.getActionListener()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getBehaviorIds()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getComponentTypes()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getConverterIds()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getConverterTypes()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getDefaultLocale()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getDefaultRenderKitId()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getDefaultValidatorInfo()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getELContextListeners()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getELResolver()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getExpressionFactory()on the wrappedApplicationobject.Return the thread-safe singletonFlowHandlerfor this application.The default behavior of this method is to callApplication.getMessageBundle()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getNavigationHandler()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getProjectStage()on the wrappedApplicationobject.Deprecated.See superclass for alternative.getResourceBundle(FacesContext ctx, String name) The default behavior of this method is to callApplication.getResourceBundle(jakarta.faces.context.FacesContext, String)on the wrappedApplicationobject.The default behavior of this method is to callApplication.getResourceHandler()on the wrappedApplicationobject.Return the thread-safe singletonSearchExpressionHandlerfor this application.Return the singletonSearchKeywordResolverinstance to be used for all search keyword resolution.The default behavior of this method is to callApplication.getStateManager()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getSupportedLocales()on the wrappedApplicationobject.The default behavior of this method is to callApplication.getValidatorIds()on the wrappedApplicationobject.Deprecated.See superclass for alternative.The default behavior of this method is to callApplication.getViewHandler()on the wrappedApplicationobject.A class that implements this interface uses this method to return an instance of the class being wrapped.voidpublishEvent(FacesContext context, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source) The default behavior of this method is to callApplication.publishEvent(jakarta.faces.context.FacesContext, Class, Class, Object)on the wrappedApplicationobject.voidpublishEvent(FacesContext context, Class<? extends SystemEvent> systemEventClass, Object source) The default behavior of this method is to callApplication.publishEvent(jakarta.faces.context.FacesContext, Class, Object)on the wrappedApplicationobject.voidremoveELContextListener(ELContextListener listener) The default behavior of this method is to callApplication.removeELContextListener(jakarta.el.ELContextListener)on the wrappedApplicationobject.voidsetActionListener(ActionListener listener) The default behavior of this method is to callApplication.setActionListener(jakarta.faces.event.ActionListener)on the wrappedApplicationobject.voidsetDefaultLocale(Locale locale) The default behavior of this method is to callApplication.setDefaultLocale(java.util.Locale)on the wrappedApplicationobject.voidsetDefaultRenderKitId(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(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.voidsetSearchExpressionHandler(SearchExpressionHandler searchExpressionHandler) Set theSearchExpressionHandlerinstance used by the application.voidsetStateManager(StateManager manager) The default behavior of this method is to callApplication.setStateManager(StateManager)on the wrappedApplicationobject.voidsetSupportedLocales(Collection<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(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) The default behavior of this method is to callApplication.subscribeToEvent(Class, jakarta.faces.event.SystemEventListener)on the wrappedApplicationobject.voidsubscribeToEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) The default behavior of this method is to callApplication.subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener)on the wrappedApplicationobject.voidunsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, jakarta.faces.event.SystemEventListener)on the wrappedApplicationobject.voidunsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, Class, jakarta.faces.event.SystemEventListener)on the wrappedApplicationobject.
-
Constructor Details
-
ApplicationWrapper
Deprecated.Use the other constructor taking the implementation being wrapped. -
ApplicationWrapper
If this application has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The
getWrapped()will then return the implementation being wrapped.- Parameters:
wrapped- The implementation being wrapped.- Since:
- 2.3
-
-
Method Details
-
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>- Returns:
- the wrapped instance.
-
getActionListener
The default behavior of this method is to call
Application.getActionListener()on the wrappedApplicationobject.- Specified by:
getActionListenerin classApplication- Returns:
- the action listener.
-
setActionListener
The default behavior of this method is to call
Application.setActionListener(jakarta.faces.event.ActionListener)on the wrappedApplicationobject.- Specified by:
setActionListenerin classApplication- Parameters:
listener- The new defaultActionListener
-
getDefaultLocale
The default behavior of this method is to call
Application.getDefaultLocale()on the wrappedApplicationobject.- Specified by:
getDefaultLocalein classApplication- Returns:
- the default Locale, or
null.
-
setDefaultLocale
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
The default behavior of this method is to call
Application.getDefaultRenderKitId()on the wrappedApplicationobject.- Specified by:
getDefaultRenderKitIdin classApplication- Returns:
- the default render kit id, or
null.
-
addDefaultValidatorId
The default behavior of this method is to call
Application.addDefaultValidatorId(String)on the wrappedApplicationobject.- Overrides:
addDefaultValidatorIdin classApplication- Parameters:
validatorId- the validator id.
-
getDefaultValidatorInfo
The default behavior of this method is to call
Application.getDefaultValidatorInfo()on the wrappedApplicationobject.- Overrides:
getDefaultValidatorInfoin classApplication- Returns:
- a map of default validator information.
-
setDefaultRenderKitId
The default behavior of this method is to call
Application.setDefaultRenderKitId(String)on the wrappedApplicationobject.- Specified by:
setDefaultRenderKitIdin classApplication- Parameters:
renderKitId- the render kit id to set.
-
getMessageBundle
The default behavior of this method is to call
Application.getMessageBundle()on the wrappedApplicationobject.- Specified by:
getMessageBundlein classApplication- Returns:
- the message bundle class name, or
null.
-
setMessageBundle
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
-
getPropertyResolver
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.getPropertyResolver()on the wrappedApplicationobject.- Specified by:
getPropertyResolverin classApplication- Returns:
- the property resolver.
-
setPropertyResolver
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.setPropertyResolver(jakarta.faces.el.PropertyResolver)on the wrappedApplicationobject.- Specified by:
setPropertyResolverin classApplication- Parameters:
resolver- The newPropertyResolverinstance
-
getVariableResolver
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.getVariableResolver()on the wrappedApplicationobject.- Specified by:
getVariableResolverin classApplication- Returns:
- the variable resolver.
-
setVariableResolver
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.setVariableResolver(jakarta.faces.el.VariableResolver)on the wrappedApplicationobject.- Specified by:
setVariableResolverin classApplication- Parameters:
resolver- The newVariableResolverinstance
-
getViewHandler
The default behavior of this method is to call
Application.getViewHandler()on the wrappedApplicationobject.- Specified by:
getViewHandlerin classApplication- Returns:
- the view handler.
-
setViewHandler
The default behavior of this method is to call
Application.setViewHandler(ViewHandler)on the wrappedApplicationobject.- Specified by:
setViewHandlerin classApplication- Parameters:
handler- The newViewHandlerinstance- Throws:
IllegalStateException- if this method is called after at least one request has been processed by theLifecycleinstance for this application.NullPointerException- ifmanagerisnull
-
getStateManager
The default behavior of this method is to call
Application.getStateManager()on the wrappedApplicationobject.- Specified by:
getStateManagerin classApplication- Returns:
- the state manager.
-
setStateManager
The default behavior of this method is to call
Application.setStateManager(StateManager)on the wrappedApplicationobject.- Specified by:
setStateManagerin classApplication- Parameters:
manager- The newStateManagerinstance- Throws:
IllegalStateException- if this method is called after at least one request has been processed by theLifecycleinstance for this application.NullPointerException- ifmanagerisnull
-
addComponent
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
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- Returns:
- the UI component.
- Throws:
FacesException- if aUIComponentof the specified type cannot be created
-
createComponent
@Deprecated public UIComponent createComponent(ValueBinding componentBinding, FacesContext context, String componentType) throws FacesException Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.createComponent(jakarta.faces.el.ValueBinding, jakarta.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- Returns:
- the UI component.
- Throws:
FacesException- if aUIComponentcannot be created
-
getComponentTypes
The default behavior of this method is to call
Application.getComponentTypes()on the wrappedApplicationobject.- Specified by:
getComponentTypesin classApplication- Returns:
- an iterator with component types.
-
addConverter
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
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
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- Returns:
- the converter.
-
createConverter
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- Returns:
- the converter.
-
getConverterIds
The default behavior of this method is to call
Application.getConverterIds()on the wrappedApplicationobject.- Specified by:
getConverterIdsin classApplication- Returns:
- an iterator with converter ids.
-
getConverterTypes
The default behavior of this method is to call
Application.getConverterTypes()on the wrappedApplicationobject.- Specified by:
getConverterTypesin classApplication- Returns:
- an iterator with converter types.
-
createMethodBinding
@Deprecated public MethodBinding createMethodBinding(String ref, 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- Returns:
- the method binding.
- Throws:
ReferenceSyntaxException- if the specifiedrefhas invalid syntax
-
getSupportedLocales
The default behavior of this method is to call
Application.getSupportedLocales()on the wrappedApplicationobject.- Specified by:
getSupportedLocalesin classApplication- Returns:
- an iterator of the supported locales.
-
setSupportedLocales
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
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
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- Returns:
- the behavior.
- Throws:
FacesException- if theBehaviorcannot be created
-
getBehaviorIds
The default behavior of this method is to call
Application.getBehaviorIds()on the wrappedApplicationobject.- Overrides:
getBehaviorIdsin classApplication- Returns:
- an iterator with behavior ids.
-
addValidator
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
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- Returns:
- the validator.
- Throws:
FacesException- if aValidatorof the specified id cannot be created
-
getValidatorIds
The default behavior of this method is to call
Application.getValidatorIds()on the wrappedApplicationobject.- Specified by:
getValidatorIdsin classApplication- Returns:
- an iterator of validator ids.
-
createValueBinding
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- Returns:
- the value binding.
- Throws:
ReferenceSyntaxException- if the specifiedrefhas invalid syntax
-
getResourceHandler
The default behavior of this method is to call
Application.getResourceHandler()on the wrappedApplicationobject.- Overrides:
getResourceHandlerin classApplication- Returns:
- the resource handler.
-
setResourceHandler
The default behavior of this method is to call
Application.setResourceHandler(ResourceHandler)on the wrappedApplicationobject.- Overrides:
setResourceHandlerin classApplication- Parameters:
resourceHandler- The newResourceHandlerinstance- Throws:
IllegalStateException- if this method is called after at least one request has been processed by theLifecycleinstance for this application.NullPointerException- ifresourceHandlerisnull
-
getResourceBundle
The default behavior of this method is to call
Application.getResourceBundle(jakarta.faces.context.FacesContext, String)on the wrappedApplicationobject.- Overrides:
getResourceBundlein classApplication- Parameters:
ctx- the Faces context.name- the name of the resource bundle.- Returns:
- the resource bundle.
-
getProjectStage
The default behavior of this method is to call
Application.getProjectStage()on the wrappedApplicationobject.- Overrides:
getProjectStagein classApplication- Returns:
- the project stage.
-
addELResolver
The default behavior of this method is to call
Application.addELResolver(jakarta.el.ELResolver)on the wrappedApplicationobject.- Overrides:
addELResolverin classApplication- Parameters:
resolver- the Jakarta Expression Language resolver to add.- Throws:
IllegalStateException- if called after the first request to theFacesServlethas been serviced.
-
getELResolver
The default behavior of this method is to call
Application.getELResolver()on the wrappedApplicationobject.- Overrides:
getELResolverin classApplication- Returns:
- the Jakarta Expression Language resolver.
-
createComponent
public UIComponent createComponent(ValueExpression componentExpression, FacesContext context, String componentType) throws FacesException The default behavior of this method is to call
Application.createComponent(jakarta.el.ValueExpression, jakarta.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- Returns:
- the UI component.
- Throws:
FacesException- if aUIComponentcannot be created
-
createComponent
public UIComponent createComponent(ValueExpression componentExpression, FacesContext context, String componentType, String rendererType) The default behavior of this method is to call
Application.createComponent(jakarta.el.ValueExpression, jakarta.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.- Returns:
- the UI component.
-
createComponent
The default behavior of this method is to call
Application.createComponent(jakarta.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.- Returns:
- the UI component.
-
createComponent
The default behavior of this method is to call
Application.createComponent(jakarta.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.- Returns:
- the UI component.
-
getExpressionFactory
The default behavior of this method is to call
Application.getExpressionFactory()on the wrappedApplicationobject.- Overrides:
getExpressionFactoryin classApplication- Returns:
- the expression factory.
-
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- Returns:
- the flow handler.
-
setFlowHandler
Description copied from class:ApplicationSet the
FlowHandlerinstance used by theNavigationHandlerto satisfy the requirements of the faces flows feature.- Overrides:
setFlowHandlerin classApplication- Parameters:
newHandler- the flow handler to set.
-
evaluateExpressionGet
@Deprecated public <T> T evaluateExpressionGet(FacesContext context, String expression, Class<? extends T> expectedType) throws ELException Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.evaluateExpressionGet(jakarta.faces.context.FacesContext, String, Class)on the wrappedApplicationobject.- Overrides:
evaluateExpressionGetin classApplication- Type Parameters:
T- the return type.- Parameters:
context- the Faces context.expression- the expression.expectedType- the expected type.- Returns:
- the result of the evaluation.
- Throws:
ELException
-
addELContextListener
The default behavior of this method is to call
Application.addELContextListener(jakarta.el.ELContextListener)on the wrappedApplicationobject.- Overrides:
addELContextListenerin classApplication- Parameters:
listener- the Jakarta Expression Language context listener to add.
-
removeELContextListener
The default behavior of this method is to call
Application.removeELContextListener(jakarta.el.ELContextListener)on the wrappedApplicationobject.- Overrides:
removeELContextListenerin classApplication- Parameters:
listener- the Jakarta Expression Language context listener to remove.
-
getELContextListeners
The default behavior of this method is to call
Application.getELContextListeners()on the wrappedApplicationobject.- Overrides:
getELContextListenersin classApplication- Returns:
- an array of Jakarta Expression Language context listeners.
-
publishEvent
public void publishEvent(FacesContext context, Class<? extends SystemEvent> systemEventClass, Object source) The default behavior of this method is to call
Application.publishEvent(jakarta.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, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source) The default behavior of this method is to call
Application.publishEvent(jakarta.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(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) The default behavior of this method is to call
Application.subscribeToEvent(Class, Class, jakarta.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(jakarta.faces.event.SystemEvent)method must be called when events of typesystemEventClassare fired.
-
subscribeToEvent
public void subscribeToEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) The default behavior of this method is to call
Application.subscribeToEvent(Class, jakarta.faces.event.SystemEventListener)on the wrappedApplicationobject.- Overrides:
subscribeToEventin classApplication- Parameters:
systemEventClass- theClassof event for whichlistenermust be fired.listener- the implementation ofSystemEventListenerwhoseSystemEventListener.processEvent(jakarta.faces.event.SystemEvent)method must be called when events of typesystemEventClassare fired.See
Application.subscribeToEvent(java.lang.Class,java.lang.Class,jakarta.faces.event.SystemEventListener)for an additional requirement regarding when it is valid to call this method.
-
unsubscribeFromEvent
public void unsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) The default behavior of this method is to call
Application.unsubscribeFromEvent(Class, Class, jakarta.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(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) The default behavior of this method is to call
Application.unsubscribeFromEvent(Class, jakarta.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.
-
getSearchExpressionHandler
Description copied from class:ApplicationReturn the thread-safe singleton
SearchExpressionHandlerfor this application.- Overrides:
getSearchExpressionHandlerin classApplication- Returns:
- the
SearchExpressionHandler.
-
setSearchExpressionHandler
Description copied from class:ApplicationSet the
SearchExpressionHandlerinstance used by the application.- Overrides:
setSearchExpressionHandlerin classApplication- Parameters:
searchExpressionHandler- theSearchExpressionHandler.
-
addSearchKeywordResolver
Description copied from class:ApplicationCause the argument
resolverto be added to the head of the resolver chain.It is not possible to remove a
SearchKeywordResolverregistered with this method, once it has been registered.The default implementation throws
UnsupportedOperationExceptionand is provided for the sole purpose of not breaking existing applications that extendApplication.- Overrides:
addSearchKeywordResolverin classApplication- Parameters:
resolver- the SearchKeywordResolver to add.
-
getSearchKeywordResolver
Description copied from class:ApplicationReturn the singleton
SearchKeywordResolverinstance to be used for all search keyword resolution. This is actually an instance of a composite SearchKeywordResolver that must contain the followingSearchKeywordResolverinstances in the following order:-
SearchKeywordResolverinstances declared using the <search-keyword-resolver> element in the application configuration resources. -
Any
SearchKeywordResolverinstances added by calls toApplication.addSearchKeywordResolver(jakarta.faces.component.search.SearchKeywordResolver). -
The
SearchKeywordResolverimplementations for@all,@child(n),@form,@id(...),@namingcontainer,@next,@none,@parent,@previous,@rootand@this.
The default implementation throws
UnsupportedOperationExceptionand is provided for the sole purpose of not breaking existing applications that extendApplication.- Overrides:
getSearchKeywordResolverin classApplication- Returns:
- the
SearchKeywordResolver.
-
-