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 override getWrapped() to
return the instance we are wrapping.
- Since:
- 2.0
-
Constructor Summary
Constructors -
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(javax.el.ELContextListener)on the wrappedApplicationobject.voidaddELResolver(ELResolver resolver) The default behavior of this method is to callApplication.addELResolver(javax.el.ELResolver)on the wrappedApplicationobject.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(String componentType) The default behavior of this method is to callApplication.createComponent(String)on the wrappedApplicationobject.createComponent(ValueExpression componentExpression, FacesContext context, String componentType) The default behavior of this method is to callApplication.createComponent(javax.el.ValueExpression, javax.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(javax.el.ValueExpression, javax.faces.context.FacesContext, String, String)on the wrappedApplicationobject.createComponent(FacesContext context, String componentType, String rendererType) The default behavior of this method is to callApplication.createComponent(javax.faces.context.FacesContext, String, String)on the wrappedApplicationobject.createComponent(FacesContext context, Resource componentResource) The default behavior of this method is to callApplication.createComponent(javax.faces.context.FacesContext, Resource)on the wrappedApplicationobject.createComponent(ValueBinding componentBinding, FacesContext context, String componentType) Deprecated.See superclass for alternative.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(javax.faces.context.FacesContext, String)on the wrappedApplicationobject.The default behavior of this method is to callApplication.getResourceHandler()on the wrappedApplicationobject.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.abstract ApplicationA 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(javax.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(javax.faces.context.FacesContext, Class, Object)on the wrappedApplicationobject.voidremoveELContextListener(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(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.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, Class<?> sourceClass, SystemEventListener listener) The default behavior of this method is to callApplication.subscribeToEvent(Class, Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.voidsubscribeToEvent(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(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.voidunsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, javax.faces.event.SystemEventListener)on the wrappedApplicationobject.
-
Constructor Details
-
ApplicationWrapper
public ApplicationWrapper()
-
-
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>
-
getActionListener
The default behavior of this method is to call
Application.getActionListener()on the wrappedApplicationobject.- Specified by:
getActionListenerin classApplication
-
setActionListener
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
The default behavior of this method is to call
Application.getDefaultLocale()on the wrappedApplicationobject.- Specified by:
getDefaultLocalein classApplication
-
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
-
addDefaultValidatorId
The default behavior of this method is to call
Application.addDefaultValidatorId(String)on the wrappedApplicationobject.- Overrides:
addDefaultValidatorIdin classApplication
-
getDefaultValidatorInfo
The default behavior of this method is to call
Application.getDefaultValidatorInfo()on the wrappedApplicationobject.- Overrides:
getDefaultValidatorInfoin classApplication
-
setDefaultRenderKitId
The default behavior of this method is to call
Application.setDefaultRenderKitId(String)on the wrappedApplicationobject.- Specified by:
setDefaultRenderKitIdin classApplication
-
getMessageBundle
The default behavior of this method is to call
Application.getMessageBundle()on the wrappedApplicationobject.- Specified by:
getMessageBundlein classApplication
-
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
-
setPropertyResolver
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.See superclass for alternative.The default behavior of this method is to call
Application.getVariableResolver()on the wrappedApplicationobject.- Specified by:
getVariableResolverin classApplication
-
setVariableResolver
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
The default behavior of this method is to call
Application.getViewHandler()on the wrappedApplicationobject.- Specified by:
getViewHandlerin classApplication
-
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
-
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- 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(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
The default behavior of this method is to call
Application.getComponentTypes()on the wrappedApplicationobject.- Specified by:
getComponentTypesin classApplication
-
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
-
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
-
getConverterIds
The default behavior of this method is to call
Application.getConverterIds()on the wrappedApplicationobject.- Specified by:
getConverterIdsin classApplication
-
getConverterTypes
The default behavior of this method is to call
Application.getConverterTypes()on the wrappedApplicationobject.- Specified by:
getConverterTypesin classApplication
-
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- 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
-
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- Throws:
FacesException- if theBehaviorcannot be created
-
getBehaviorIds
The default behavior of this method is to call
Application.getBehaviorIds()on the wrappedApplicationobject.- Overrides:
getBehaviorIdsin classApplication
-
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- 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
-
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- 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
-
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(javax.faces.context.FacesContext, String)on the wrappedApplicationobject.- Overrides:
getResourceBundlein classApplication
-
getProjectStage
The default behavior of this method is to call
Application.getProjectStage()on the wrappedApplicationobject.- Overrides:
getProjectStagein classApplication
-
addELResolver
The default behavior of this method is to call
Application.addELResolver(javax.el.ELResolver)on the wrappedApplicationobject.- Overrides:
addELResolverin classApplication- 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
-
createComponent
public UIComponent createComponent(ValueExpression componentExpression, FacesContext context, 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(ValueExpression componentExpression, FacesContext context, String componentType, 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
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
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
The default behavior of this method is to call
Application.getExpressionFactory()on the wrappedApplicationobject.- Overrides:
getExpressionFactoryin classApplication
-
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
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, String expression, Class<? extends T> expectedType) throws 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:
ELException
-
addELContextListener
The default behavior of this method is to call
Application.addELContextListener(javax.el.ELContextListener)on the wrappedApplicationobject.- Overrides:
addELContextListenerin classApplication
-
removeELContextListener
The default behavior of this method is to call
Application.removeELContextListener(javax.el.ELContextListener)on the wrappedApplicationobject.- Overrides:
removeELContextListenerin classApplication
-
getELContextListeners
The default behavior of this method is to call
Application.getELContextListeners()on the wrappedApplicationobject.- Overrides:
getELContextListenersin classApplication
-
publishEvent
public void publishEvent(FacesContext context, Class<? extends SystemEvent> systemEventClass, 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, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, 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(Class<? extends SystemEvent> systemEventClass, 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(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(Class<? extends SystemEvent> systemEventClass, 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(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.
-