Provides a simple implementation of Application
that can be subclassed by developers wishing to provide specialized behavior to an existing
Application instance. The default implementation of all methods is to call through to the
wrapped Application.
Usage: extend this class and push the implementation being wrapped to the constructor and use
getWrapped to access the instance being wrapped.
| Modifier and Type | Field and Description |
|---|---|
| private Application |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ApplicationWrapper(Application
The implementation being wrapped. wrapped)If this application has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addBehavior(String
The behavior id to be registered behaviorId, String The fully qualified class name of the corresponding behaviorClass)Behavior
implementationOverrides javax.
The default behavior of this method is to call
|
| public void | addComponent(String
The component type to be registered componentType, String The fully qualified class name of the corresponding componentClass)UIComponent
implementationImplements abstract javax.
The default behavior of this method is to call
|
| public void | addConverter(String
The converter id to be registered converterId, String The fully qualified class name of the corresponding converterClass)Converter
implementationImplements abstract javax.
The default behavior of this method is to call
|
| public void | addConverter(Class<?>
The class for which this converter is registered targetClass, String The fully qualified class name of the corresponding converterClass)Converter
implementationImplements abstract javax.
The default behavior of this method is to call
|
| public void | addDefaultValidatorId(String
the validator id. validatorId)Overrides javax.
The default behavior of this method is to call
|
| public void | addELContextListener(ELContextListener
the EL context listener to add. listener)Overrides javax.
The default behavior of this method is to call
|
| public void | addELResolver(ELResolver
the EL resolver to add. resolver)Overrides javax.
The default behavior of this method is to call
|
| public void | addSearchKeywordResolver(SearchKeywordResolver
the SearchKeywordResolver to add. resolver)Overrides javax.
Cause the argument |
| public void | addValidator(String
The validator id to be registered validatorId, String The fully qualified class name of the corresponding validatorClass)Validator
implementationImplements abstract javax.
The default behavior of this method is to call
|
| public Behavior | createBehavior(String
The behavior id for which to create and return a new behaviorId)Behavior
instanceOverrides javax.
The default behavior of this method is to call |
| public UIComponent | createComponent(String
The component type for which to create and return a new
componentType)UIComponent instanceImplements abstract javax.
The default behavior of this method is to call |
| public UIComponent | createComponent(ValueBinding
ValueBinding representing a component value binding
expression (typically specified by the component attribute of a
custom tag)FacesContext for the current requestComponent type to create if the componentType)ValueBinding does not return a
component instanceImplements abstract javax.
Deprecated
See superclass for alternative.
The default behavior of this method is to call
|
| public UIComponent | createComponent(ValueExpression
ValueExpression representing a component value expression
(typically specified by the component attribute of a custom tag)FacesContext for the current requestComponent type to create if the componentType)ValueExpression does not return
a component instanceOverrides javax.
The default behavior of this method is to call
|
| public UIComponent | createComponent(ValueExpression
ValueExpression representing a component value expression
(typically specified by the component attribute of a custom tag)FacesContext for the current requestComponent type to create if the componentType, String ValueExpression does not return
a component instanceThe renderer-type of the rendererType)Renderer that will render this
component. A null value must be accepted for this parameter.Overrides javax.
The default behavior of this method is to call
|
| public UIComponent | createComponent(FacesContext
FacesContext for the current requestComponent type to create componentType, String The renderer-type of the rendererType)Renderer that will render this
component. A null value must be accepted for this parameter.Overrides javax.
The default behavior of this method is to call
|
| public UIComponent | createComponent(FacesContext
FacesContext for the current requestA componentResource)Resource that points to a source file that provides an
implementation of a component.Overrides javax.
The default behavior of this method is to call
|
| public Converter | createConverter(String
The converter id for which to create and return a new converterId)Converter
instanceImplements abstract javax.
The default behavior of this method is to call |
| public Converter | createConverter(Class<?>
Target class for which to return a targetClass)ConverterImplements abstract javax.
The default behavior of this method is to call |
| public MethodBinding | createMethodBinding(String
Method binding expression for which to return a ref, Class<?>[] MethodBinding instanceParameter signatures that must be compatible with those of the method to be
invoked, or a zero-length array or params)null for a method that takes no
parametersImplements abstract javax.
Deprecated
See superclass for alternative.
The default behavior of this method is to call
|
| public Validator | createValidator(String
The validator id for which to create and return a new validatorId)Validator
instanceImplements abstract javax.
The default behavior of this method is to call |
| public ValueBinding | createValueBinding(String
Value binding expression for which to return a ref)ValueBinding instanceImplements abstract javax.
Deprecated
as a consequence of
ValueBinding being deprecated.
The default behavior of this method is to call |
| public <T> T | evaluateExpressionGet(FacesContext
the Faces context. context, String the expression. expression, Class<? extends T> the expected type. expectedType)Overrides javax.
Deprecated
See superclass for alternative.
The default behavior of this method is to call
|
| public ActionListener | getActionListener()
Implements abstract javax.
The default behavior of this method is to call |
| public Iterator | getBehaviorIds()
Overrides javax.
The default behavior of this method is to call |
| public Iterator | getComponentTypes()
Implements abstract javax.
The default behavior of this method is to call |
| public Iterator | getConverterIds()
Implements abstract javax.
The default behavior of this method is to call |
| public Iterator | getConverterTypes()
Implements abstract javax.
The default behavior of this method is to call |
| public Locale | getDefaultLocale()
Implements abstract javax.
The default behavior of this method is to call |
| public String | getDefaultRenderKitId()
Implements abstract javax.
The default behavior of this method is to call |
| public Map | getDefaultValidatorInfo()
Overrides javax.
The default behavior of this method is to call |
| public ELContextListener[] | getELContextListeners()
Overrides javax.
The default behavior of this method is to call |
| public ELResolver | getELResolver()
Overrides javax.
The default behavior of this method is to call |
| public ExpressionFactory | getExpressionFactory()
Overrides javax.
The default behavior of this method is to call |
| public FlowHandler | getFlowHandler()
Overrides javax.
Return the thread-safe singleton |
| public String | getMessageBundle()
Implements abstract javax.
The default behavior of this method is to call |
| public NavigationHandler | getNavigationHandler()
Implements abstract javax.
The default behavior of this method is to call |
| public ProjectStage | getProjectStage()
Overrides javax.
The default behavior of this method is to call |
| public PropertyResolver | getPropertyResolver()
Implements abstract javax.
Deprecated
See superclass for alternative.
The default behavior of this method is to call |
| public ResourceBundle | getResourceBundle(FacesContext
the Faces context. ctx, String the name of the resource bundle. name)Overrides javax.
The default behavior of this method is to call
|
| public ResourceHandler | getResourceHandler()
Overrides javax.
The default behavior of this method is to call |
| public SearchExpressionHandler | getSearchExpressionHandler()
Overrides javax.
Return the thread-safe singleton |
| public SearchKeywordResolver | getSearchKeywordResolver()
Overrides javax.
Return the singleton |
| public StateManager | getStateManager()
Implements abstract javax.
The default behavior of this method is to call |
| public Iterator | getSupportedLocales()
Implements abstract javax.
The default behavior of this method is to call |
| public Iterator | getValidatorIds()
Implements abstract javax.
The default behavior of this method is to call |
| public VariableResolver | getVariableResolver()
Implements abstract javax.
Deprecated
See superclass for alternative.
The default behavior of this method is to call |
| public ViewHandler | getViewHandler()
Implements abstract javax.
The default behavior of this method is to call |
| public Application | getWrapped()
Implements javax. A class that implements this interface uses this method to return an instance of the class being wrapped. |
| public void | publishEvent(FacesContext
the context, Class<? extends SystemEvent> FacesContext for the current requestThe systemEventClass, Object Class of event that is being published.The source for the event of type source)systemEventClass.Overrides javax.
The default behavior of this method is to call
|
| public void | publishEvent(FacesContext
the context, Class<? extends SystemEvent> FacesContext for the current requestThe systemEventClass, Class<?> Class of event that is being published.The sourceBaseType, Object Class of the source event that must be used to lookup
the listener to which this event must be published. If this argument is
null the return from source.getClass() must be used as
the sourceBaseType.The source for the event of type source)systemEventClass.Overrides javax.
The default behavior of this method is to call
|
| public void | removeELContextListener(ELContextListener
the EL context listener to remove. listener)Overrides javax.
The default behavior of this method is to call
|
| public void | setActionListener(ActionListener
The new default listener)ActionListenerImplements abstract javax.
The default behavior of this method is to call
|
| public void | setDefaultLocale(Locale
The new default locale)LocaleImplements abstract javax.
The default behavior of this method is to call
|
| public void | setDefaultRenderKitId(String
the render kit id to set. renderKitId)Implements abstract javax.
The default behavior of this method is to call
|
| public void | setFlowHandler(FlowHandler
the flow handler to set. newHandler)Overrides javax.
Set the |
| public void | setMessageBundle(String
Base name of the resource bundle to be used bundle)Implements abstract javax.
The default behavior of this method is to call |
| public void | setNavigationHandler(NavigationHandler
The new handler)NavigationHandler instanceImplements abstract javax.
The default behavior of this method is to call
|
| public void | setPropertyResolver(PropertyResolver
The new resolver)PropertyResolver instanceImplements abstract javax.
Deprecated
See superclass for alternative.
The default behavior of this method is to call
|
| public void | setResourceHandler(ResourceHandler
The new resourceHandler)ResourceHandler instanceOverrides javax.
The default behavior of this method is to call
|
| public void | setSearchExpressionHandler(SearchExpressionHandler searchExpressionHandler)
Overrides javax.
Set the |
| public void | setStateManager(StateManager
The new manager)StateManager instanceImplements abstract javax.
The default behavior of this method is to call
|
| public void | setSupportedLocales(Collection<Locale>
The set of supported locales)Locales for this applicationImplements abstract javax.
The default behavior of this method is to call
|
| public void | setVariableResolver(VariableResolver
The new resolver)VariableResolver instanceImplements abstract javax.
Deprecated
See superclass for alternative.
The default behavior of this method is to call
|
| public void | setViewHandler(ViewHandler
The new handler)ViewHandler instanceImplements abstract javax.
The default behavior of this method is to call
|
| public void | subscribeToEvent(Class<? extends SystemEvent>
the systemEventClass, Class<?> Class of event for which listener must
be fired.the sourceClass, SystemEventListener Class of the instance which causes events of type
systemEventClass to be fired. May be null.the implementation of listener)javax.faces.event.SystemEventListener whose
javax.faces.event.SystemEventListener#processEvent method must be called
when events of type systemEventClass are fired.Overrides javax.
The default behavior of this method is to call
|
| public void | subscribeToEvent(Class<? extends SystemEvent>
the systemEventClass, SystemEventListener Class of event for which listener must
be fired.the implementation of listener)javax.faces.event.SystemEventListener whose
javax.faces.event.SystemEventListener#processEvent method must be called
when events of type systemEventClass are fired.
See
Overrides javax.
The default behavior of this method is to call
|
| public void | unsubscribeFromEvent(Class<? extends SystemEvent>
the systemEventClass, Class<?> Class of event for which listener must
be fired.the sourceClass, SystemEventListener Class of the instance which causes events of type
systemEventClass to be fired. May be null.the implementation of listener)javax.faces.event.SystemEventListener to remove
from the internal data structure.Overrides javax.
The default behavior of this method is to call
|
| public void | unsubscribeFromEvent(Class<? extends SystemEvent>
the systemEventClass, SystemEventListener Class of event for which listener must
be fired.the implementation of listener)javax.faces.event.SystemEventListener to remove
from the internal data structure.Overrides javax.
The default behavior of this method is to call
|