Application represents a per-web-application singleton object where applications based on JavaServer Faces (or implementations wishing to provide extended functionality) can register application-wide singletons that provide functionality required by JavaServer Faces.
| Modifier and Type | Field and Description |
|---|---|
| private final ApplicationAssociate | |
| private final Events | |
| private final ExpressionLanguage | |
| private final InstanceFactory | |
| private static final Logger | |
| private final SearchExpression | |
| private final Singletons | |
| private final Stage | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| 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.
Register a new mapping of behavior id to the name of
the corresponding |
| 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.
Register a new mapping of component type to the name of the corresponding |
| 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.
Register a new mapping of converter id to the name of the corresponding |
| 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. Register a new converter class that is capable of performing conversions for the specified target class. |
| public void | addDefaultValidatorId(String
the validator id. validatorId)Overrides javax.
Register a validator by its id that is applied to all |
| public void | addELContextListener(ELContextListener
the EL context listener to add. listener)Overrides javax.
Provide a way for Faces applications to register an |
| public void | addELResolver(ELResolver
the EL resolver to add. resolver)Overrides javax.
Cause an the argument |
| 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.
Register a new mapping of validator id to the name of the corresponding |
| public Behavior | createBehavior(String
The behavior id for which to create and return a new behaviorId)Behavior
instanceOverrides javax.
Instantiate and return a new |
| public UIComponent | createComponent(String
The component type for which to create and return a new
componentType)UIComponent instanceImplements abstract javax.
Instantiate and return a new |
| 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.
Call the |
| 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.
Like |
| 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.
Like |
| 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.
Instantiate and return a new
|
| 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
as a consequence of
ValueBinding being deprecated.
Wrap the argument |
| public Converter | createConverter(String
The converter id for which to create and return a new converterId)Converter
instanceImplements abstract javax.
Instantiate and return a new
If the |
| public Converter | createConverter(Class<?>
Target class for which to return a targetClass)ConverterImplements abstract javax.
Instantiate and return a new |
| 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
Call |
| public Validator | createValidator(String
The validator id for which to create and return a new validatorId)Validator
instanceImplements abstract javax.
Instantiate and return a new
The argument |
| public ValueBinding | createValueBinding(String
Value binding expression for which to return a ref)ValueBinding instanceImplements abstract javax.
Deprecated
Call |
| public <T> T | evaluateExpressionGet(FacesContext
the Faces context. context, String the expression. expression, Class<? extends T> the expected type. expectedType)Overrides javax. Get a value by evaluating an expression. |
| public ActionListener | getActionListener()
Implements abstract javax.
Return the default |
| public CompositeELResolver | |
| public Iterator | getBehaviorIds()
Overrides javax.
Return an |
| public Iterator | getComponentTypes()
Implements abstract javax.
Return an |
| public FacesCompositeELResolver | |
| public Iterator | getConverterIds()
Implements abstract javax.
Return an |
| public Iterator | getConverterTypes()
Implements abstract javax.
Return an |
| public Locale | getDefaultLocale()
Implements abstract javax.
Return the default |
| public String | getDefaultRenderKitId()
Implements abstract javax.
Return the |
| public Map | getDefaultValidatorInfo()
Overrides javax.
Return an immutable |
| public ELContextListener[] | getELContextListeners()
Overrides javax.
If no calls have been made to |
| public ELResolver | getELResolver()
Overrides javax.
Return the singleton |
| public ExpressionFactory | getExpressionFactory()
Overrides javax.
Return the |
| public FlowHandler | getFlowHandler()
Overrides javax.
Return the thread-safe singleton |
| public String | getMessageBundle()
Implements abstract javax.
Return the fully qualified class name of the |
| public NavigationHandler | getNavigationHandler()
Implements abstract javax.
Return the |
| public ProjectStage | getProjectStage()
Overrides javax. Return the project stage for the currently running application instance. |
| public PropertyResolver | getPropertyResolver()
Implements abstract javax.
Deprecated
Return a |
| public ResourceBundle | getResourceBundle(FacesContext
the Faces context. context, String the name of the resource bundle. var)Overrides javax.
Find a |
| public ResourceHandler | getResourceHandler()
Overrides javax.
Return the singleton, stateless, thread-safe |
| public SearchExpressionHandler | getSearchExpressionHandler()
Overrides javax.
Return the thread-safe singleton |
| public SearchKeywordResolver | getSearchKeywordResolver()
Overrides javax.
Return the singleton |
| public StateManager | getStateManager()
Implements abstract javax.
Return the |
| public Iterator | getSupportedLocales()
Implements abstract javax.
Return an |
| public Iterator | getValidatorIds()
Implements abstract javax.
Return an |
| public VariableResolver | getVariableResolver()
Implements abstract javax.
Deprecated
Return the |
| public ViewHandler | getViewHandler()
Implements abstract javax.
Return the |
| 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.
If |
| 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.
This method functions exactly like |
| public void | removeELContextListener(ELContextListener
the EL context listener to remove. listener)Overrides javax.
Remove the argument |
| public void | setActionListener(ActionListener
The new default actionListener)ActionListenerImplements abstract javax.
Set the default |
| public void | |
| public void | setDefaultLocale(Locale
The new default locale)LocaleImplements abstract javax.
Set the default |
| public void | setDefaultRenderKitId(String
the render kit id to set. renderKitId)Implements abstract javax.
Set the |
| public void | setFlowHandler(FlowHandler
the flow handler to set. flowHandler)Overrides javax.
Set the |
| public void | setMessageBundle(String
Base name of the resource bundle to be used messageBundle)Implements abstract javax.
Set the fully qualified class name of the |
| public void | setNavigationHandler(NavigationHandler
The new navigationHandler)NavigationHandler instanceImplements abstract javax.
Set the |
| public void | setPropertyResolver(PropertyResolver
The new resolver)PropertyResolver instanceImplements abstract javax.
Deprecated
Set the |
| public void | setResourceHandler(ResourceHandler
The new resourceHandler)ResourceHandler instanceOverrides javax.
Set the |
| public void | setSearchExpressionHandler(SearchExpressionHandler searchExpressionHandler)
Overrides javax.
Set the |
| public void | setStateManager(StateManager
The new stateManager)StateManager instanceImplements abstract javax.
Set the |
| public void | setSupportedLocales(Collection<Locale>
The set of supported newLocales)Locales for this applicationImplements abstract javax.
Set the |
| public void | setVariableResolver(VariableResolver
The new resolver)VariableResolver instanceImplements abstract javax.
Deprecated
Set the |
| public void | setViewHandler(ViewHandler
The new viewHandler)ViewHandler instanceImplements abstract javax.
Set the |
| 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.
Install the listener instance referenced by
argument |
| 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.
Install the listener instance referenced by
argument |
| 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.
Remove the listener instance referenced by argument
|
| 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.
Remove the listener instance referenced by argument
|