Class ApplicationImpl
- Version:
- $Revision$ $Date$
- Author:
- Manfred Geiler (latest modification by $Author$), Anton Koinov, Thomas Spiegl, Stan Silvert
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBehavior(String behaviorId, String behaviorClass) final voidaddComponent(String componentType, String componentClassName) final voidaddConverter(Class<?> targetClass, String converterClass) final voidaddConverter(String converterId, String converterClass) voidaddDefaultValidatorId(String validatorId) final voidaddELContextListener(jakarta.el.ELContextListener listener) final voidaddELResolver(jakarta.el.ELResolver resolver) voidfinal voidaddValidator(String validatorId, String validatorClass) createBehavior(String behaviorId) final UIComponentcreateComponent(jakarta.el.ValueExpression componentExpression, FacesContext facesContext, String componentType) createComponent(jakarta.el.ValueExpression componentExpression, FacesContext context, String componentType, String rendererType) createComponent(FacesContext context, Resource componentResource) createComponent(FacesContext context, String componentType, String rendererType) final UIComponentcreateComponent(String componentType) final ConvertercreateConverter(Class<?> targetClass) final ConvertercreateConverter(String converterId) Return an instance of the converter class that has been registered under the specified id.final ValidatorcreateValidator(String validatorId) final <T> TevaluateExpressionGet(FacesContext context, String expression, Class<? extends T> expectedType) final ActionListenerfinal Localefinal Stringfinal jakarta.el.ELContextListener[]final jakarta.el.ELResolverfinal jakarta.el.ExpressionFactoryfinal FlowHandlerfinal Stringfinal NavigationHandlerfinal ResourceBundlegetResourceBundle(FacesContext facesContext, String name) final ResourceHandlerfinal SearchExpressionHandlerfinal StateManagerfinal ViewHandlervoidpublishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source) voidpublishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass, Object source) final voidremoveELContextListener(jakarta.el.ELContextListener listener) final voidsetActionListener(ActionListener actionListener) final voidsetDefaultLocale(Locale locale) final voidsetDefaultRenderKitId(String defaultRenderKitId) final voidsetFlowHandler(FlowHandler flowHandler) final voidsetMessageBundle(String messageBundle) final voidsetNavigationHandler(NavigationHandler navigationHandler) final voidsetResourceHandler(ResourceHandler resourceHandler) final voidsetSearchExpressionHandler(SearchExpressionHandler searchExpressionHandler) final voidsetStateManager(StateManager stateManager) final voidsetSupportedLocales(Collection<Locale> locales) final voidsetViewHandler(ViewHandler viewHandler) voidsubscribeToEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) voidsubscribeToEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) voidunsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) voidunsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener)
-
Field Details
-
PROJECT_STAGE_SYSTEM_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
ApplicationImpl
public ApplicationImpl()
-
-
Method Details
-
addELResolver
public final void addELResolver(jakarta.el.ELResolver resolver) - Overrides:
addELResolverin classApplication
-
addDefaultValidatorId
- Overrides:
addDefaultValidatorIdin classApplication
-
getDefaultValidatorInfo
- Overrides:
getDefaultValidatorInfoin classApplication
-
getELResolver
public final jakarta.el.ELResolver getELResolver()- Overrides:
getELResolverin classApplication
-
getResourceBundle
public final ResourceBundle getResourceBundle(FacesContext facesContext, String name) throws FacesException, NullPointerException - Overrides:
getResourceBundlein classApplication- Throws:
FacesExceptionNullPointerException
-
createComponent
public final UIComponent createComponent(jakarta.el.ValueExpression componentExpression, FacesContext facesContext, String componentType) throws FacesException, NullPointerException - Overrides:
createComponentin classApplication- Throws:
FacesExceptionNullPointerException
-
createComponent
public UIComponent createComponent(jakarta.el.ValueExpression componentExpression, FacesContext context, String componentType, String rendererType) - Overrides:
createComponentin classApplication
-
getExpressionFactory
public final jakarta.el.ExpressionFactory getExpressionFactory()- Overrides:
getExpressionFactoryin classApplication
-
evaluateExpressionGet
public final <T> T evaluateExpressionGet(FacesContext context, String expression, Class<? extends T> expectedType) throws jakarta.el.ELException - Overrides:
evaluateExpressionGetin classApplication- Throws:
jakarta.el.ELException
-
addELContextListener
public final void addELContextListener(jakarta.el.ELContextListener listener) - Overrides:
addELContextListenerin classApplication
-
publishEvent
public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source) - Overrides:
publishEventin classApplication
-
publishEvent
public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass, Object source) - Overrides:
publishEventin classApplication
-
removeELContextListener
public final void removeELContextListener(jakarta.el.ELContextListener listener) - Overrides:
removeELContextListenerin classApplication
-
getELContextListeners
public final jakarta.el.ELContextListener[] getELContextListeners()- Overrides:
getELContextListenersin classApplication
-
setActionListener
- Specified by:
setActionListenerin classApplication
-
getActionListener
- Specified by:
getActionListenerin classApplication
-
getBehaviorIds
- Overrides:
getBehaviorIdsin classApplication
-
getComponentTypes
- Specified by:
getComponentTypesin classApplication
-
getConverterIds
- Specified by:
getConverterIdsin classApplication
-
getConverterTypes
- Specified by:
getConverterTypesin classApplication
-
setDefaultLocale
- Specified by:
setDefaultLocalein classApplication
-
getDefaultLocale
- Specified by:
getDefaultLocalein classApplication
-
setMessageBundle
- Specified by:
setMessageBundlein classApplication
-
getMessageBundle
- Specified by:
getMessageBundlein classApplication
-
getProjectStage
- Overrides:
getProjectStagein classApplication
-
setResourceHandler
- Overrides:
setResourceHandlerin classApplication
-
getResourceHandler
- Overrides:
getResourceHandlerin classApplication
-
setSupportedLocales
- Specified by:
setSupportedLocalesin classApplication
-
getSupportedLocales
- Specified by:
getSupportedLocalesin classApplication
-
getValidatorIds
- Specified by:
getValidatorIdsin classApplication
-
setViewHandler
- Specified by:
setViewHandlerin classApplication
-
subscribeToEvent
public void subscribeToEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) - Overrides:
subscribeToEventin classApplication
-
subscribeToEvent
public void subscribeToEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) - Overrides:
subscribeToEventin classApplication
-
unsubscribeFromEvent
public void unsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) - Overrides:
unsubscribeFromEventin classApplication
-
unsubscribeFromEvent
public void unsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) - Overrides:
unsubscribeFromEventin classApplication
-
getViewHandler
- Specified by:
getViewHandlerin classApplication
-
addBehavior
- Overrides:
addBehaviorin classApplication
-
addComponent
- Specified by:
addComponentin classApplication
-
addConverter
- Specified by:
addConverterin classApplication
-
addConverter
- Specified by:
addConverterin classApplication
-
addValidator
- Specified by:
addValidatorin classApplication
-
createBehavior
- Overrides:
createBehaviorin classApplication- Throws:
FacesException
-
createComponent
- Overrides:
createComponentin classApplication
-
createComponent
- Overrides:
createComponentin classApplication
-
createComponent
- Specified by:
createComponentin classApplication- Throws:
FacesException
-
createConverter
Return an instance of the converter class that has been registered under the specified id.Converters are registered via faces-config.xml files, and can also be registered via the addConverter(String id, Class converterClass) method on this class. Here the the appropriate Class definition is found, then an instance is created and returned.
A converter registered via a config file can have any number of nested attribute or property tags. The Faces specification is very vague about what effect these nested tags have. This method ignores nested attribute definitions, but for each nested property tag the corresponding setter is invoked on the new Converter instance passing the property's defaultValuer. Basic typeconversion is done so the target properties on the Converter instance can be String, int, boolean, etc. Note that:
- the Sun Mojarra Faces implemenation ignores nested property tags completely, so this behaviour cannot be relied on across implementations.
- there is no equivalent functionality for converter classes registered via the Application.addConverter api method.
Note that this method is most commonly called from the standard f:attribute tag. As an alternative, most components provide a "converter" attribute which uses an EL expression to create a Converter instance, in which case this method is not invoked at all. The converter attribute allows the returned Converter instance to be configured via normal dependency-injection, and is generally a better choice than using this method.
- Specified by:
createConverterin classApplication
-
createConverter
- Specified by:
createConverterin classApplication
-
createValidator
- Specified by:
createValidatorin classApplication- Throws:
FacesException
-
getDefaultRenderKitId
- Specified by:
getDefaultRenderKitIdin classApplication
-
setDefaultRenderKitId
- Specified by:
setDefaultRenderKitIdin classApplication
-
getStateManager
- Specified by:
getStateManagerin classApplication
-
setStateManager
- Specified by:
setStateManagerin classApplication
-
setFlowHandler
- Overrides:
setFlowHandlerin classApplication
-
getFlowHandler
- Overrides:
getFlowHandlerin classApplication
-
setSearchExpressionHandler
- Overrides:
setSearchExpressionHandlerin classApplication
-
getSearchExpressionHandler
- Overrides:
getSearchExpressionHandlerin classApplication
-
getSearchKeywordResolver
- Overrides:
getSearchKeywordResolverin classApplication
-
addSearchKeywordResolver
- Overrides:
addSearchKeywordResolverin classApplication
-