Class ApplicationWrapper
- java.lang.Object
-
- javax.faces.application.Application
-
- javax.faces.application.ApplicationWrapper
-
- All Implemented Interfaces:
FacesWrapper<Application>
public abstract class ApplicationWrapper extends Application implements FacesWrapper<Application>
Provides a simple implementation of
Application
that can be subclassed by developers wishing to provide specialized behavior to an existingApplication
instance. The default implementation of all methods is to call through to the wrappedApplication
.Usage: extend this class and override
getWrapped()
to return the instance we are wrapping.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ApplicationWrapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addBehavior(java.lang.String behaviorId, java.lang.String behaviorClass)
The default behavior of this method is to callApplication.addBehavior(String, String)
on the wrappedApplication
object.void
addComponent(java.lang.String componentType, java.lang.String componentClass)
The default behavior of this method is to callApplication.addComponent(String, String)
on the wrappedApplication
object.void
addConverter(java.lang.Class<?> targetClass, java.lang.String converterClass)
The default behavior of this method is to callApplication.addConverter(Class, String)
on the wrappedApplication
object.void
addConverter(java.lang.String converterId, java.lang.String converterClass)
The default behavior of this method is to callApplication.addConverter(String, String)
on the wrappedApplication
object.void
addDefaultValidatorId(java.lang.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(java.lang.String validatorId, java.lang.String validatorClass)
The default behavior of this method is to callApplication.addValidator(String, String)
on the wrappedApplication
object.Behavior
createBehavior(java.lang.String behaviorId)
The default behavior of this method is to callApplication.createBehavior(String)
on the wrappedApplication
object.UIComponent
createComponent(java.lang.String componentType)
The default behavior of this method is to callApplication.createComponent(String)
on the wrappedApplication
object.UIComponent
createComponent(ValueExpression componentExpression, FacesContext context, java.lang.String componentType)
The default behavior of this method is to callApplication.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String)
on the wrappedApplication
object.UIComponent
createComponent(ValueExpression componentExpression, FacesContext context, java.lang.String componentType, java.lang.String rendererType)
The default behavior of this method is to callApplication.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String, String)
on the wrappedApplication
object.UIComponent
createComponent(FacesContext context, java.lang.String componentType, java.lang.String rendererType)
The default behavior of this method is to callApplication.createComponent(javax.faces.context.FacesContext, String, String)
on the wrappedApplication
object.UIComponent
createComponent(FacesContext context, Resource componentResource)
The default behavior of this method is to callApplication.createComponent(javax.faces.context.FacesContext, Resource)
on the wrappedApplication
object.UIComponent
createComponent(ValueBinding componentBinding, FacesContext context, java.lang.String componentType)
Deprecated.See superclass for alternative.Converter
createConverter(java.lang.Class<?> targetClass)
The default behavior of this method is to callApplication.createConverter(Class)
on the wrappedApplication
object.Converter
createConverter(java.lang.String converterId)
The default behavior of this method is to callApplication.createConverter(String)
on the wrappedApplication
object.MethodBinding
createMethodBinding(java.lang.String ref, java.lang.Class<?>[] params)
Deprecated.See superclass for alternative.Validator
createValidator(java.lang.String validatorId)
The default behavior of this method is to callApplication.createValidator(String)
on the wrappedApplication
object.ValueBinding
createValueBinding(java.lang.String ref)
The default behavior of this method is to callApplication.createValueBinding(String)
on the wrappedApplication
object.<T> T
evaluateExpressionGet(FacesContext context, java.lang.String expression, java.lang.Class<? extends T> expectedType)
Deprecated.See superclass for alternative.ActionListener
getActionListener()
The default behavior of this method is to callApplication.getActionListener()
on the wrappedApplication
object.java.util.Iterator<java.lang.String>
getBehaviorIds()
The default behavior of this method is to callApplication.getBehaviorIds()
on the wrappedApplication
object.java.util.Iterator<java.lang.String>
getComponentTypes()
The default behavior of this method is to callApplication.getComponentTypes()
on the wrappedApplication
object.java.util.Iterator<java.lang.String>
getConverterIds()
The default behavior of this method is to callApplication.getConverterIds()
on the wrappedApplication
object.java.util.Iterator<java.lang.Class<?>>
getConverterTypes()
The default behavior of this method is to callApplication.getConverterTypes()
on the wrappedApplication
object.java.util.Locale
getDefaultLocale()
The default behavior of this method is to callApplication.getDefaultLocale()
on the wrappedApplication
object.java.lang.String
getDefaultRenderKitId()
The default behavior of this method is to callApplication.getDefaultRenderKitId()
on the wrappedApplication
object.java.util.Map<java.lang.String,java.lang.String>
getDefaultValidatorInfo()
The default behavior of this method is to callApplication.getDefaultValidatorInfo()
on the wrappedApplication
object.ELContextListener[]
getELContextListeners()
The default behavior of this method is to callApplication.getELContextListeners()
on the wrappedApplication
object.ELResolver
getELResolver()
The default behavior of this method is to callApplication.getELResolver()
on the wrappedApplication
object.ExpressionFactory
getExpressionFactory()
The default behavior of this method is to callApplication.getExpressionFactory()
on the wrappedApplication
object.FlowHandler
getFlowHandler()
Return the thread-safe singletonFlowHandler
for this application.java.lang.String
getMessageBundle()
The default behavior of this method is to callApplication.getMessageBundle()
on the wrappedApplication
object.NavigationHandler
getNavigationHandler()
The default behavior of this method is to callApplication.getNavigationHandler()
on the wrappedApplication
object.ProjectStage
getProjectStage()
The default behavior of this method is to callApplication.getProjectStage()
on the wrappedApplication
object.PropertyResolver
getPropertyResolver()
Deprecated.See superclass for alternative.java.util.ResourceBundle
getResourceBundle(FacesContext ctx, java.lang.String name)
The default behavior of this method is to callApplication.getResourceBundle(javax.faces.context.FacesContext, String)
on the wrappedApplication
object.ResourceHandler
getResourceHandler()
The default behavior of this method is to callApplication.getResourceHandler()
on the wrappedApplication
object.StateManager
getStateManager()
The default behavior of this method is to callApplication.getStateManager()
on the wrappedApplication
object.java.util.Iterator<java.util.Locale>
getSupportedLocales()
The default behavior of this method is to callApplication.getSupportedLocales()
on the wrappedApplication
object.java.util.Iterator<java.lang.String>
getValidatorIds()
The default behavior of this method is to callApplication.getValidatorIds()
on the wrappedApplication
object.VariableResolver
getVariableResolver()
Deprecated.See superclass for alternative.ViewHandler
getViewHandler()
The default behavior of this method is to callApplication.getViewHandler()
on the wrappedApplication
object.abstract Application
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped.void
publishEvent(FacesContext context, java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceBaseType, java.lang.Object source)
The default behavior of this method is to callApplication.publishEvent(javax.faces.context.FacesContext, Class, Class, Object)
on the wrappedApplication
object.void
publishEvent(FacesContext context, java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Object source)
The default behavior of this method is to callApplication.publishEvent(javax.faces.context.FacesContext, Class, Object)
on the 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(java.util.Locale locale)
The default behavior of this method is to callApplication.setDefaultLocale(java.util.Locale)
on the wrappedApplication
object.void
setDefaultRenderKitId(java.lang.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(java.lang.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(java.util.Collection<java.util.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(java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, SystemEventListener listener)
The default behavior of this method is to callApplication.subscribeToEvent(Class, Class, javax.faces.event.SystemEventListener)
on the wrappedApplication
object.void
subscribeToEvent(java.lang.Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)
The default behavior of this method is to callApplication.subscribeToEvent(Class, javax.faces.event.SystemEventListener)
on the wrappedApplication
object.void
unsubscribeFromEvent(java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, SystemEventListener listener)
The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, Class, javax.faces.event.SystemEventListener)
on the wrappedApplication
object.void
unsubscribeFromEvent(java.lang.Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)
The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, javax.faces.event.SystemEventListener)
on the wrappedApplication
object.
-
-
-
Method Detail
-
getWrapped
public abstract Application 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
public ActionListener getActionListener()
The default behavior of this method is to call
Application.getActionListener()
on the wrappedApplication
object.- Specified by:
getActionListener
in classApplication
-
setActionListener
public void setActionListener(ActionListener listener)
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
public java.util.Locale getDefaultLocale()
The default behavior of this method is to call
Application.getDefaultLocale()
on the wrappedApplication
object.- Specified by:
getDefaultLocale
in classApplication
-
setDefaultLocale
public void setDefaultLocale(java.util.Locale locale)
The default behavior of this method is to call
Application.setDefaultLocale(java.util.Locale)
on the wrappedApplication
object.- Specified by:
setDefaultLocale
in classApplication
- Parameters:
locale
- The new defaultLocale
-
getDefaultRenderKitId
public java.lang.String getDefaultRenderKitId()
The default behavior of this method is to call
Application.getDefaultRenderKitId()
on the wrappedApplication
object.- Specified by:
getDefaultRenderKitId
in classApplication
-
addDefaultValidatorId
public void addDefaultValidatorId(java.lang.String validatorId)
The default behavior of this method is to call
Application.addDefaultValidatorId(String)
on the wrappedApplication
object.- Overrides:
addDefaultValidatorId
in classApplication
-
getDefaultValidatorInfo
public java.util.Map<java.lang.String,java.lang.String> getDefaultValidatorInfo()
The default behavior of this method is to call
Application.getDefaultValidatorInfo()
on the wrappedApplication
object.- Overrides:
getDefaultValidatorInfo
in classApplication
-
setDefaultRenderKitId
public void setDefaultRenderKitId(java.lang.String renderKitId)
The default behavior of this method is to call
Application.setDefaultRenderKitId(String)
on the wrappedApplication
object.- Specified by:
setDefaultRenderKitId
in classApplication
-
getMessageBundle
public java.lang.String getMessageBundle()
The default behavior of this method is to call
Application.getMessageBundle()
on the wrappedApplication
object.- Specified by:
getMessageBundle
in classApplication
-
setMessageBundle
public void setMessageBundle(java.lang.String bundle)
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
-
getNavigationHandler
public NavigationHandler getNavigationHandler()
The default behavior of this method is to call
Application.getNavigationHandler()
on the wrappedApplication
object.- Specified by:
getNavigationHandler
in classApplication
-
setNavigationHandler
public void setNavigationHandler(NavigationHandler handler)
The default behavior of this method is to call
Application.setNavigationHandler(NavigationHandler)
on the wrappedApplication
object.- Specified by:
setNavigationHandler
in classApplication
- Parameters:
handler
- The newNavigationHandler
instance
-
getPropertyResolver
@Deprecated public PropertyResolver 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 public void setPropertyResolver(PropertyResolver resolver)
Deprecated. See superclass for alternative.The default behavior of this method is to call
Application.setPropertyResolver(javax.faces.el.PropertyResolver)
on the wrappedApplication
object.- Specified by:
setPropertyResolver
in classApplication
- Parameters:
resolver
- The newPropertyResolver
instance
-
getVariableResolver
@Deprecated public VariableResolver 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 public void setVariableResolver(VariableResolver resolver)
Deprecated. See superclass for alternative.The default behavior of this method is to call
Application.setVariableResolver(javax.faces.el.VariableResolver)
on the wrappedApplication
object.- Specified by:
setVariableResolver
in classApplication
- Parameters:
resolver
- The newVariableResolver
instance
-
getViewHandler
public ViewHandler getViewHandler()
The default behavior of this method is to call
Application.getViewHandler()
on the wrappedApplication
object.- Specified by:
getViewHandler
in classApplication
-
setViewHandler
public void setViewHandler(ViewHandler handler)
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:
java.lang.IllegalStateException
- if this method is called after at least one request has been processed by theLifecycle
instance for this application.java.lang.NullPointerException
- ifmanager
isnull
-
getStateManager
public StateManager getStateManager()
The default behavior of this method is to call
Application.getStateManager()
on the wrappedApplication
object.- Specified by:
getStateManager
in classApplication
-
setStateManager
public void setStateManager(StateManager manager)
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:
java.lang.IllegalStateException
- if this method is called after at least one request has been processed by theLifecycle
instance for this application.java.lang.NullPointerException
- ifmanager
isnull
-
addComponent
public void addComponent(java.lang.String componentType, java.lang.String componentClass)
The default behavior of this method is to call
Application.addComponent(String, String)
on the 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
public UIComponent createComponent(java.lang.String componentType) throws FacesException
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, java.lang.String componentType) throws FacesException
Deprecated. See superclass for alternative.The default behavior of this method is to call
Application.createComponent(javax.faces.el.ValueBinding, javax.faces.context.FacesContext, String)
on the 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
public java.util.Iterator<java.lang.String> getComponentTypes()
The default behavior of this method is to call
Application.getComponentTypes()
on the wrappedApplication
object.- Specified by:
getComponentTypes
in classApplication
-
addConverter
public void addConverter(java.lang.String converterId, java.lang.String converterClass)
The default behavior of this method is to call
Application.addConverter(String, String)
on the 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
public void addConverter(java.lang.Class<?> targetClass, java.lang.String converterClass)
The default behavior of this method is to call
Application.addConverter(Class, String)
on the 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
public Converter createConverter(java.lang.String converterId)
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
public Converter createConverter(java.lang.Class<?> targetClass)
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
public java.util.Iterator<java.lang.String> getConverterIds()
The default behavior of this method is to call
Application.getConverterIds()
on the wrappedApplication
object.- Specified by:
getConverterIds
in classApplication
-
getConverterTypes
public java.util.Iterator<java.lang.Class<?>> 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(java.lang.String ref, java.lang.Class<?>[] params) throws ReferenceSyntaxException
Deprecated. See superclass for alternative.The default behavior of this method is to call
Application.createMethodBinding(String, Class[])
on the 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
public java.util.Iterator<java.util.Locale> getSupportedLocales()
The default behavior of this method is to call
Application.getSupportedLocales()
on the wrappedApplication
object.- Specified by:
getSupportedLocales
in classApplication
-
setSupportedLocales
public void setSupportedLocales(java.util.Collection<java.util.Locale> locales)
The default behavior of this method is to call
Application.setSupportedLocales(java.util.Collection)
on the wrappedApplication
object.- Specified by:
setSupportedLocales
in classApplication
- Parameters:
locales
- The set of supportedLocale
s for this application
-
addBehavior
public void addBehavior(java.lang.String behaviorId, java.lang.String behaviorClass)
The default behavior of this method is to call
Application.addBehavior(String, String)
on the wrappedApplication
object.- Overrides:
addBehavior
in classApplication
- Parameters:
behaviorId
- The behavior id to be registeredbehaviorClass
- The fully qualified class name of the correspondingBehavior
implementation
-
createBehavior
public Behavior createBehavior(java.lang.String behaviorId) throws FacesException
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
public java.util.Iterator<java.lang.String> getBehaviorIds()
The default behavior of this method is to call
Application.getBehaviorIds()
on the wrappedApplication
object.- Overrides:
getBehaviorIds
in classApplication
-
addValidator
public void addValidator(java.lang.String validatorId, java.lang.String validatorClass)
The default behavior of this method is to call
Application.addValidator(String, String)
on the 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
public Validator createValidator(java.lang.String validatorId) throws FacesException
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
public java.util.Iterator<java.lang.String> getValidatorIds()
The default behavior of this method is to call
Application.getValidatorIds()
on the wrappedApplication
object.- Specified by:
getValidatorIds
in classApplication
-
createValueBinding
public ValueBinding createValueBinding(java.lang.String ref) throws ReferenceSyntaxException
The default behavior of this method is to call
Application.createValueBinding(String)
on the 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
public ResourceHandler getResourceHandler()
The default behavior of this method is to call
Application.getResourceHandler()
on the wrappedApplication
object.- Overrides:
getResourceHandler
in classApplication
-
setResourceHandler
public void setResourceHandler(ResourceHandler resourceHandler)
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:
java.lang.IllegalStateException
- if this method is called after at least one request has been processed by theLifecycle
instance for this application.java.lang.NullPointerException
- ifresourceHandler
isnull
-
getResourceBundle
public java.util.ResourceBundle getResourceBundle(FacesContext ctx, java.lang.String name)
The default behavior of this method is to call
Application.getResourceBundle(javax.faces.context.FacesContext, String)
on the wrappedApplication
object.- Overrides:
getResourceBundle
in classApplication
-
getProjectStage
public ProjectStage getProjectStage()
The default behavior of this method is to call
Application.getProjectStage()
on the wrappedApplication
object.- Overrides:
getProjectStage
in classApplication
-
addELResolver
public void addELResolver(ELResolver resolver)
The default behavior of this method is to call
Application.addELResolver(javax.el.ELResolver)
on the wrappedApplication
object.- Overrides:
addELResolver
in classApplication
- Throws:
java.lang.IllegalStateException
- if called after the first request to theFacesServlet
has been serviced.
-
getELResolver
public ELResolver 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, java.lang.String componentType) throws FacesException
The default behavior of this method is to call
Application.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String)
on the 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, java.lang.String componentType, java.lang.String rendererType)
The default behavior of this method is to call
Application.createComponent(javax.el.ValueExpression, javax.faces.context.FacesContext, String, String)
on the 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
public UIComponent createComponent(FacesContext context, java.lang.String componentType, java.lang.String rendererType)
The default behavior of this method is to call
Application.createComponent(javax.faces.context.FacesContext, String, String)
on the 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
public UIComponent createComponent(FacesContext context, Resource componentResource)
The default behavior of this method is to call
Application.createComponent(javax.faces.context.FacesContext, Resource)
on the 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
public ExpressionFactory getExpressionFactory()
The default behavior of this method is to call
Application.getExpressionFactory()
on the wrappedApplication
object.- Overrides:
getExpressionFactory
in classApplication
-
getFlowHandler
public FlowHandler 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
public void setFlowHandler(FlowHandler newHandler)
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, java.lang.String expression, java.lang.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
public void addELContextListener(ELContextListener listener)
The default behavior of this method is to call
Application.addELContextListener(javax.el.ELContextListener)
on the wrappedApplication
object.- Overrides:
addELContextListener
in classApplication
-
removeELContextListener
public void removeELContextListener(ELContextListener listener)
The default behavior of this method is to call
Application.removeELContextListener(javax.el.ELContextListener)
on the wrappedApplication
object.- Overrides:
removeELContextListener
in classApplication
-
getELContextListeners
public ELContextListener[] 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, java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Object source)
The default behavior of this method is to call
Application.publishEvent(javax.faces.context.FacesContext, Class, Object)
on the 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, java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceBaseType, java.lang.Object source)
The default behavior of this method is to call
Application.publishEvent(javax.faces.context.FacesContext, Class, Class, Object)
on the 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(java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, SystemEventListener listener)
The default behavior of this method is to call
Application.subscribeToEvent(Class, Class, javax.faces.event.SystemEventListener)
on the 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(java.lang.Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)
The default behavior of this method is to call
Application.subscribeToEvent(Class, javax.faces.event.SystemEventListener)
on the 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(java.lang.Class<? extends SystemEvent> systemEventClass, java.lang.Class<?> sourceClass, SystemEventListener listener)
The default behavior of this method is to call
Application.unsubscribeFromEvent(Class, Class, javax.faces.event.SystemEventListener)
on the 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(java.lang.Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)
The default behavior of this method is to call
Application.unsubscribeFromEvent(Class, javax.faces.event.SystemEventListener)
on the 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.
-
-