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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBehavior
(String behaviorId, String behaviorClass) The default behavior of this method is to callApplication.addBehavior(String, String)
on the wrappedApplication
object.void
addComponent
(String componentType, String componentClass) The default behavior of this method is to callApplication.addComponent(String, String)
on the wrappedApplication
object.void
addConverter
(Class<?> targetClass, String converterClass) The default behavior of this method is to callApplication.addConverter(Class, String)
on the wrappedApplication
object.void
addConverter
(String converterId, String converterClass) The default behavior of this method is to callApplication.addConverter(String, String)
on the wrappedApplication
object.void
addDefaultValidatorId
(String validatorId) The default behavior of this method is to callApplication.addDefaultValidatorId(String)
on the wrappedApplication
object.void
addELContextListener
(ELContextListener listener) The default behavior of this method is to callApplication.addELContextListener(javax.el.ELContextListener)
on the wrappedApplication
object.void
addELResolver
(ELResolver resolver) The default behavior of this method is to callApplication.addELResolver(javax.el.ELResolver)
on the wrappedApplication
object.void
addValidator
(String validatorId, String validatorClass) The default behavior of this method is to callApplication.addValidator(String, String)
on the wrappedApplication
object.createBehavior
(String behaviorId) The default behavior of this method is to callApplication.createBehavior(String)
on the wrappedApplication
object.createComponent
(String componentType) The default behavior of this method is to callApplication.createComponent(String)
on the wrappedApplication
object.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 wrappedApplication
object.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 wrappedApplication
object.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 wrappedApplication
object.createComponent
(FacesContext context, Resource componentResource) The default behavior of this method is to callApplication.createComponent(javax.faces.context.FacesContext, Resource)
on the wrappedApplication
object.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 wrappedApplication
object.createConverter
(String converterId) The default behavior of this method is to callApplication.createConverter(String)
on the wrappedApplication
object.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 wrappedApplication
object.createValueBinding
(String ref) The default behavior of this method is to callApplication.createValueBinding(String)
on the wrappedApplication
object.<T> T
evaluateExpressionGet
(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 wrappedApplication
object.The default behavior of this method is to callApplication.getBehaviorIds()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getComponentTypes()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getConverterIds()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getConverterTypes()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getDefaultLocale()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getDefaultRenderKitId()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getDefaultValidatorInfo()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getELContextListeners()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getELResolver()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getExpressionFactory()
on the wrappedApplication
object.Return the thread-safe singletonFlowHandler
for this application.The default behavior of this method is to callApplication.getMessageBundle()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getNavigationHandler()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getProjectStage()
on the wrappedApplication
object.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 wrappedApplication
object.The default behavior of this method is to callApplication.getResourceHandler()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getStateManager()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getSupportedLocales()
on the wrappedApplication
object.The default behavior of this method is to callApplication.getValidatorIds()
on the wrappedApplication
object.Deprecated.See superclass for alternative.The default behavior of this method is to callApplication.getViewHandler()
on the wrappedApplication
object.abstract Application
A class that implements this interface uses this method to return an instance of the class being wrapped.void
publishEvent
(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 wrappedApplication
object.void
publishEvent
(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 wrappedApplication
object.void
removeELContextListener
(ELContextListener listener) The default behavior of this method is to callApplication.removeELContextListener(javax.el.ELContextListener)
on the wrappedApplication
object.void
setActionListener
(ActionListener listener) The default behavior of this method is to callApplication.setActionListener(javax.faces.event.ActionListener)
on the wrappedApplication
object.void
setDefaultLocale
(Locale locale) The default behavior of this method is to callApplication.setDefaultLocale(java.util.Locale)
on the wrappedApplication
object.void
setDefaultRenderKitId
(String renderKitId) The default behavior of this method is to callApplication.setDefaultRenderKitId(String)
on the wrappedApplication
object.void
setFlowHandler
(FlowHandler newHandler) Set theFlowHandler
instance used by theNavigationHandler
to satisfy the requirements of the faces flows feature.void
setMessageBundle
(String bundle) The default behavior of this method is to callApplication.setMessageBundle(String)
on the wrappedApplication
object.void
setNavigationHandler
(NavigationHandler handler) The default behavior of this method is to callApplication.setNavigationHandler(NavigationHandler)
on the wrappedApplication
object.void
setPropertyResolver
(PropertyResolver resolver) Deprecated.See superclass for alternative.void
setResourceHandler
(ResourceHandler resourceHandler) The default behavior of this method is to callApplication.setResourceHandler(ResourceHandler)
on the wrappedApplication
object.void
setStateManager
(StateManager manager) The default behavior of this method is to callApplication.setStateManager(StateManager)
on the wrappedApplication
object.void
setSupportedLocales
(Collection<Locale> locales) The default behavior of this method is to callApplication.setSupportedLocales(java.util.Collection)
on the wrappedApplication
object.void
setVariableResolver
(VariableResolver resolver) Deprecated.See superclass for alternative.void
setViewHandler
(ViewHandler handler) The default behavior of this method is to callApplication.setViewHandler(ViewHandler)
on the wrappedApplication
object.void
subscribeToEvent
(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 wrappedApplication
object.void
subscribeToEvent
(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) The default behavior of this method is to callApplication.subscribeToEvent(Class, javax.faces.event.SystemEventListener)
on the wrappedApplication
object.void
unsubscribeFromEvent
(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 wrappedApplication
object.void
unsubscribeFromEvent
(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, javax.faces.event.SystemEventListener)
on the wrappedApplication
object.
-
Constructor Details
-
ApplicationWrapper
public ApplicationWrapper()
-
-
Method Details
-
getWrapped
Description copied from interface:FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.
- Specified by:
getWrapped
in interfaceFacesWrapper<Application>
-
getActionListener
The default behavior of this method is to call
Application.getActionListener()
on the wrappedApplication
object.- Specified by:
getActionListener
in classApplication
-
setActionListener
The default behavior of this method is to call
Application.setActionListener(javax.faces.event.ActionListener)
on the wrappedApplication
object.- Specified by:
setActionListener
in classApplication
- Parameters:
listener
- The new defaultActionListener
-
getDefaultLocale
The default behavior of this method is to call
Application.getDefaultLocale()
on the wrappedApplication
object.- Specified by:
getDefaultLocale
in classApplication
-
setDefaultLocale
The default behavior of this method is to call
Application.setDefaultLocale(java.util.Locale)
on the wrappedApplication
object.- Specified by:
setDefaultLocale
in classApplication
- Parameters:
locale
- The new defaultLocale
-
getDefaultRenderKitId
The default behavior of this method is to call
Application.getDefaultRenderKitId()
on the wrappedApplication
object.- Specified by:
getDefaultRenderKitId
in classApplication
-
addDefaultValidatorId
The default behavior of this method is to call
Application.addDefaultValidatorId(String)
on the wrappedApplication
object.- Overrides:
addDefaultValidatorId
in classApplication
-
getDefaultValidatorInfo
The default behavior of this method is to call
Application.getDefaultValidatorInfo()
on the wrappedApplication
object.- Overrides:
getDefaultValidatorInfo
in classApplication
-
setDefaultRenderKitId
The default behavior of this method is to call
Application.setDefaultRenderKitId(String)
on the wrappedApplication
object.- Specified by:
setDefaultRenderKitId
in classApplication
-
getMessageBundle
The default behavior of this method is to call
Application.getMessageBundle()
on the wrappedApplication
object.- Specified by:
getMessageBundle
in classApplication
-
setMessageBundle
The default behavior of this method is to call
Application.setMessageBundle(String)
on the wrappedApplication
object.- Specified by:
setMessageBundle
in 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 wrappedApplication
object.- Specified by:
getPropertyResolver
in classApplication
-
setPropertyResolver
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.setPropertyResolver(javax.faces.el.PropertyResolver)
on the wrappedApplication
object.- Specified by:
setPropertyResolver
in classApplication
- Parameters:
resolver
- The newPropertyResolver
instance
-
getVariableResolver
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.getVariableResolver()
on the wrappedApplication
object.- Specified by:
getVariableResolver
in classApplication
-
setVariableResolver
Deprecated.See superclass for alternative.The default behavior of this method is to call
Application.setVariableResolver(javax.faces.el.VariableResolver)
on the wrappedApplication
object.- Specified by:
setVariableResolver
in classApplication
- Parameters:
resolver
- The newVariableResolver
instance
-
getViewHandler
The default behavior of this method is to call
Application.getViewHandler()
on the wrappedApplication
object.- Specified by:
getViewHandler
in classApplication
-
setViewHandler
The default behavior of this method is to call
Application.setViewHandler(ViewHandler)
on the wrappedApplication
object.- Specified by:
setViewHandler
in classApplication
- Parameters:
handler
- The newViewHandler
instance- Throws:
IllegalStateException
- if this method is called after at least one request has been processed by theLifecycle
instance for this application.NullPointerException
- ifmanager
isnull
-
getStateManager
The default behavior of this method is to call
Application.getStateManager()
on the wrappedApplication
object.- Specified by:
getStateManager
in classApplication
-
setStateManager
The default behavior of this method is to call
Application.setStateManager(StateManager)
on the wrappedApplication
object.- Specified by:
setStateManager
in classApplication
- Parameters:
manager
- The newStateManager
instance- Throws:
IllegalStateException
- if this method is called after at least one request has been processed by theLifecycle
instance for this application.NullPointerException
- ifmanager
isnull
-
addComponent
The default behavior of this method is to call
Application.addComponent(String, String)
on the wrappedApplication
object.- Specified by:
addComponent
in classApplication
- Parameters:
componentType
- The component type to be registeredcomponentClass
- The fully qualified class name of the correspondingUIComponent
implementation
-
createComponent
The default behavior of this method is to call
Application.createComponent(String)
on the wrappedApplication
object.- Specified by:
createComponent
in classApplication
- Parameters:
componentType
- The component type for which to create and return a newUIComponent
instance- Throws:
FacesException
- if aUIComponent
of 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 wrappedApplication
object.- Specified by:
createComponent
in classApplication
- Parameters:
componentBinding
-ValueBinding
representing a component value binding expression (typically specified by thecomponent
attribute of a custom tag)context
-FacesContext
for the current requestcomponentType
- Component type to create if theValueBinding
does not return a component instance- Throws:
FacesException
- if aUIComponent
cannot be created
-
getComponentTypes
The default behavior of this method is to call
Application.getComponentTypes()
on the wrappedApplication
object.- Specified by:
getComponentTypes
in classApplication
-
addConverter
The default behavior of this method is to call
Application.addConverter(String, String)
on the wrappedApplication
object.- Specified by:
addConverter
in classApplication
- Parameters:
converterId
- The converter id to be registeredconverterClass
- The fully qualified class name of the correspondingConverter
implementation
-
addConverter
The default behavior of this method is to call
Application.addConverter(Class, String)
on the wrappedApplication
object.- Specified by:
addConverter
in classApplication
- Parameters:
targetClass
- The class for which this converter is registeredconverterClass
- The fully qualified class name of the correspondingConverter
implementation
-
createConverter
The default behavior of this method is to call
Application.createConverter(String)
on the wrappedApplication
object.- Specified by:
createConverter
in classApplication
- Parameters:
converterId
- The converter id for which to create and return a newConverter
instance
-
createConverter
The default behavior of this method is to call
Application.createConverter(Class)
on the wrappedApplication
object.- Specified by:
createConverter
in classApplication
- Parameters:
targetClass
- Target class for which to return aConverter
-
getConverterIds
The default behavior of this method is to call
Application.getConverterIds()
on the wrappedApplication
object.- Specified by:
getConverterIds
in classApplication
-
getConverterTypes
The default behavior of this method is to call
Application.getConverterTypes()
on the wrappedApplication
object.- Specified by:
getConverterTypes
in 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 wrappedApplication
object.- Specified by:
createMethodBinding
in classApplication
- Parameters:
ref
- Method binding expression for which to return aMethodBinding
instanceparams
- Parameter signatures that must be compatible with those of the method to be invoked, or a zero-length array ornull
for a method that takes no parameters- Throws:
ReferenceSyntaxException
- if the specifiedref
has invalid syntax
-
getSupportedLocales
The default behavior of this method is to call
Application.getSupportedLocales()
on the wrappedApplication
object.- Specified by:
getSupportedLocales
in classApplication
-
setSupportedLocales
The default behavior of this method is to call
Application.setSupportedLocales(java.util.Collection)
on the wrappedApplication
object.- Specified by:
setSupportedLocales
in classApplication
- Parameters:
locales
- The set of supportedLocale
s for this application
-
addBehavior
The default behavior of this method is to call
Application.addBehavior(String, String)
on the wrappedApplication
object.- Overrides:
addBehavior
in classApplication
- Parameters:
behaviorId
- The behavior id to be registeredbehaviorClass
- The fully qualified class name of the correspondingBehavior
implementation
-
createBehavior
The default behavior of this method is to call
Application.createBehavior(String)
on the wrappedApplication
object.- Overrides:
createBehavior
in classApplication
- Parameters:
behaviorId
- The behavior id for which to create and return a newBehavior
instance- Throws:
FacesException
- if theBehavior
cannot be created
-
getBehaviorIds
The default behavior of this method is to call
Application.getBehaviorIds()
on the wrappedApplication
object.- Overrides:
getBehaviorIds
in classApplication
-
addValidator
The default behavior of this method is to call
Application.addValidator(String, String)
on the wrappedApplication
object.- Specified by:
addValidator
in classApplication
- Parameters:
validatorId
- The validator id to be registeredvalidatorClass
- The fully qualified class name of the correspondingValidator
implementation
-
createValidator
The default behavior of this method is to call
Application.createValidator(String)
on the wrappedApplication
object.- Specified by:
createValidator
in classApplication
- Parameters:
validatorId
- The validator id for which to create and return a newValidator
instance- Throws:
FacesException
- if aValidator
of the specified id cannot be created
-
getValidatorIds
The default behavior of this method is to call
Application.getValidatorIds()
on the wrappedApplication
object.- Specified by:
getValidatorIds
in classApplication
-
createValueBinding
The default behavior of this method is to call
Application.createValueBinding(String)
on the wrappedApplication
object.- Specified by:
createValueBinding
in classApplication
- Parameters:
ref
- Value binding expression for which to return aValueBinding
instance- Throws:
ReferenceSyntaxException
- if the specifiedref
has invalid syntax
-
getResourceHandler
The default behavior of this method is to call
Application.getResourceHandler()
on the wrappedApplication
object.- Overrides:
getResourceHandler
in classApplication
-
setResourceHandler
The default behavior of this method is to call
Application.setResourceHandler(ResourceHandler)
on the wrappedApplication
object.- Overrides:
setResourceHandler
in classApplication
- Parameters:
resourceHandler
- The newResourceHandler
instance- Throws:
IllegalStateException
- if this method is called after at least one request has been processed by theLifecycle
instance for this application.NullPointerException
- ifresourceHandler
isnull
-
getResourceBundle
The default behavior of this method is to call
Application.getResourceBundle(javax.faces.context.FacesContext, String)
on the wrappedApplication
object.- Overrides:
getResourceBundle
in classApplication
-
getProjectStage
The default behavior of this method is to call
Application.getProjectStage()
on the wrappedApplication
object.- Overrides:
getProjectStage
in classApplication
-
addELResolver
The default behavior of this method is to call
Application.addELResolver(javax.el.ELResolver)
on the wrappedApplication
object.- Overrides:
addELResolver
in classApplication
- Throws:
IllegalStateException
- if called after the first request to theFacesServlet
has been serviced.
-
getELResolver
The default behavior of this method is to call
Application.getELResolver()
on the wrappedApplication
object.- Overrides:
getELResolver
in 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 wrappedApplication
object.- Overrides:
createComponent
in classApplication
- Parameters:
componentExpression
-ValueExpression
representing a component value expression (typically specified by thecomponent
attribute of a custom tag)context
-FacesContext
for the current requestcomponentType
- Component type to create if theValueExpression
does not return a component instance- Throws:
FacesException
- if aUIComponent
cannot 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 wrappedApplication
object.- Overrides:
createComponent
in classApplication
- Parameters:
componentExpression
-ValueExpression
representing a component value expression (typically specified by thecomponent
attribute of a custom tag)context
-FacesContext
for the current requestcomponentType
- Component type to create if theValueExpression
does not return a component instancerendererType
- The renderer-type of theRenderer
that will render this component. Anull
value 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 wrappedApplication
object.- Overrides:
createComponent
in classApplication
- Parameters:
context
-FacesContext
for the current requestcomponentType
- Component type to createrendererType
- The renderer-type of theRenderer
that will render this component. Anull
value 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 wrappedApplication
object.- Overrides:
createComponent
in classApplication
- Parameters:
context
-FacesContext
for the current requestcomponentResource
- AResource
that 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 wrappedApplication
object.- Overrides:
getExpressionFactory
in classApplication
-
getFlowHandler
Description copied from class:Application
Return the thread-safe singleton
FlowHandler
for 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
Application
but 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 anull
return.- Overrides:
getFlowHandler
in classApplication
-
setFlowHandler
Description copied from class:Application
Set the
FlowHandler
instance used by theNavigationHandler
to satisfy the requirements of the faces flows feature.- Overrides:
setFlowHandler
in 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 wrappedApplication
object.- Overrides:
evaluateExpressionGet
in classApplication
- Throws:
ELException
-
addELContextListener
The default behavior of this method is to call
Application.addELContextListener(javax.el.ELContextListener)
on the wrappedApplication
object.- Overrides:
addELContextListener
in classApplication
-
removeELContextListener
The default behavior of this method is to call
Application.removeELContextListener(javax.el.ELContextListener)
on the wrappedApplication
object.- Overrides:
removeELContextListener
in classApplication
-
getELContextListeners
The default behavior of this method is to call
Application.getELContextListeners()
on the wrappedApplication
object.- Overrides:
getELContextListeners
in 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 wrappedApplication
object.- Overrides:
publishEvent
in classApplication
- Parameters:
context
- theFacesContext
for the current requestsystemEventClass
- TheClass
of 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 wrappedApplication
object.- Overrides:
publishEvent
in classApplication
- Parameters:
context
- theFacesContext
for the current requestsystemEventClass
- TheClass
of event that is being published.sourceBaseType
- TheClass
of the source event that must be used to lookup the listener to which this event must be published. If this argument isnull
the 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 wrappedApplication
object.- Overrides:
subscribeToEvent
in classApplication
- Parameters:
systemEventClass
- theClass
of event for whichlistener
must be fired.sourceClass
- theClass
of the instance which causes events of typesystemEventClass
to be fired. May benull
.listener
- the implementation ofSystemEventListener
whoseSystemEventListener.processEvent(javax.faces.event.SystemEvent)
method must be called when events of typesystemEventClass
are 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 wrappedApplication
object.- Overrides:
subscribeToEvent
in classApplication
- Parameters:
systemEventClass
- theClass
of event for whichlistener
must be fired.listener
- the implementation ofSystemEventListener
whoseSystemEventListener.processEvent(javax.faces.event.SystemEvent)
method must be called when events of typesystemEventClass
are 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 wrappedApplication
object.- Overrides:
unsubscribeFromEvent
in classApplication
- Parameters:
systemEventClass
- theClass
of event for whichlistener
must be fired.sourceClass
- theClass
of the instance which causes events of typesystemEventClass
to be fired. May benull
.listener
- the implementation ofSystemEventListener
to 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 wrappedApplication
object.- Overrides:
unsubscribeFromEvent
in classApplication
- Parameters:
systemEventClass
- theClass
of event for whichlistener
must be fired.listener
- the implementation ofSystemEventListener
to remove from the internal data structure.
-