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>
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ApplicationWrapper()Deprecated.ApplicationWrapper(Application delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddBehavior(String behaviorId, String behaviorClass)voidaddComponent(String componentType, String componentClass)Register a new mapping of component type to the name of the correspondingUIComponentclass.voidaddConverter(Class<?> targetClass, String converterClass)Register a new converter class that is capable of performing conversions for the specified target class.voidaddConverter(String converterId, String converterClass)Register a new mapping of converter id to the name of the correspondingConverterclass.voidaddDefaultValidatorId(String validatorId)voidaddELContextListener(javax.el.ELContextListener listener)Provide a way for Faces applications to register anELContextListenerthat will be notified on creation ofELContextinstances.voidaddELResolver(javax.el.ELResolver resolver)Cause an the argumentresolverto be added to the resolver chain as specified in section 5.5.1 of the JavaServer Faces Specification.voidaddSearchKeywordResolver(SearchKeywordResolver resolver)voidaddValidator(String validatorId, String validatorClass)Register a new mapping of validator id to the name of the correspondingValidatorclass.BehaviorcreateBehavior(String behaviorId)UIComponentcreateComponent(String componentType)Create a new UIComponent subclass, using the mappings defined by previous calls to the addComponent method of this class.UIComponentcreateComponent(javax.el.ValueExpression componentExpression, FacesContext contexte, String componentType)Call thegetValue()method on the specifiedValueExpression.UIComponentcreateComponent(javax.el.ValueExpression componentExpression, FacesContext context, String componentType, String rendererType)UIComponentcreateComponent(FacesContext context, String componentType, String rendererType)UIComponentcreateComponent(FacesContext context, Resource componentResource)???ConvertercreateConverter(Class<?> targetClass)Instantiate and return a newinstance of the class that has registered itself as capable of performing conversions for objects of the specified type.ConverterConvertercreateConverter(String converterId)Instantiate and return a newinstance of the class specified by a previous call toConverteraddConverter()for the specified converter id.ValidatorcreateValidator(String validatorId)Instantiate and return a newinstance of the class specified by a previous call toValidatoraddValidator()for the specified validator id.<T> TevaluateExpressionGet(FacesContext context, String expression, Class<? extends T> expectedType)Deprecated.ActionListenergetActionListener()Return the defaultActionListenerto be registered for allActionSourcecomponents in this appication.Iterator<String>getBehaviorIds()Iterator<String>getComponentTypes()Return anIteratorover the set of currently defined component types for thisApplication.Iterator<String>getConverterIds()Return anIteratorover the set of currently registered converter ids for thisApplicationIterator<Class<?>>getConverterTypes()Return anIteratorover the set ofClassinstances for whichConverterclasseshave been explicitly registered.LocalegetDefaultLocale()Return the defaultLocalefor this application.StringgetDefaultRenderKitId()Return therenderKitIdto be used for rendering this application.Map<String,String>getDefaultValidatorInfo()javax.el.ELContextListener[]getELContextListeners()If no calls have been made toaddELContextListener(javax.el.ELContextListener), this method must return an empty arrayjavax.el.ELResolvergetELResolver()Return the singletonELResolverinstance to be used for all EL resolution.javax.el.ExpressionFactorygetExpressionFactory()Return theExpressionFactoryinstance for this application.FlowHandlergetFlowHandler()StringgetMessageBundle()Return the fully qualified class name of theResourceBundleto be used for JavaServer Faces messages for this application.NavigationHandlergetNavigationHandler()Return theinstance that will be passed the outcome returned by any invoked application action for this web application.NavigationHandlerProjectStagegetProjectStage()Return the project stage for the currently running application instance.ResourceBundlegetResourceBundle(FacesContext ctx, String name)Find aResourceBundleas defined in the application configuration resources under the specified name.ResourceHandlergetResourceHandler()Return the singleton, stateless, thread-safefor this application.ResourceHandlerSearchExpressionHandlergetSearchExpressionHandler()SearchKeywordResolvergetSearchKeywordResolver()StateManagergetStateManager()Return theStateManagerinstance that will be utilized during the Restore View and Render Response phases of the request processing lifecycle.Iterator<Locale>getSupportedLocales()Return anIteratorover the supportedLocalesfor this appication.Iterator<String>getValidatorIds()Return anIteratorover the set of currently registered validator ids for thisApplication.ViewHandlergetViewHandler()Set theinstance that will be utilized during theViewHandlerRestore View and Render Responsephases of the request processing lifecycle.ApplicationgetWrapped()A class that implements this interface uses this method to return an instance of the class being wrapped.voidpublishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source)voidpublishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass, Object source)If there are one or more listeners for events of the type represented bysystemEventClass, call those listeners,passing source as thesourceof the event.voidremoveELContextListener(javax.el.ELContextListener listener)Remove the argumentlistenerfrom the list ofELContextListeners.voidsetActionListener(ActionListener listener)Set the defaultto be registered for allActionListenercomponents.ActionSourcevoidsetDefaultLocale(Locale locale)Set the defaultLocalefor this application.voidsetDefaultRenderKitId(String renderKitId)Return therenderKitIdto be used for rendering this application.voidsetFlowHandler(FlowHandler flowHandler)voidsetMessageBundle(String bundle)Set the fully qualified class name of theResourceBundleto be used for JavaServer Faces messages for this application.voidsetNavigationHandler(NavigationHandler handler)Set theNavigationHandlerinstance that will be passed the outcome returned by any invoked application action for this web application.voidsetResourceHandler(ResourceHandler resourceHandler)voidsetSearchExpressionHandler(SearchExpressionHandler searchExpressionHandler)voidsetStateManager(StateManager manager)Set theStateManagerinstance that will be utilized during theRestore View and Render Responsephases of the request processing lifecycle.voidsetSupportedLocales(Collection<Locale> locales)Set theLocaleinstances representing the supportedLocalesfor this application.voidsetViewHandler(ViewHandler handler)Set theViewHandlerinstance that will be utilized during theRestore View and Render Responsephases of the request processing lifecycle.voidsubscribeToEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener)voidsubscribeToEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)voidunsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener)voidunsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)
-
-
-
Constructor Detail
-
ApplicationWrapper
@Deprecated public ApplicationWrapper()
Deprecated.
-
ApplicationWrapper
public ApplicationWrapper(Application delegate)
-
-
Method Detail
-
addBehavior
public void addBehavior(String behaviorId, String behaviorClass)
- Overrides:
addBehaviorin classApplication
-
addComponent
public void addComponent(String componentType, String componentClass)
Description copied from class:ApplicationRegister a new mapping of component type to the name of the correspondingUIComponentclass. This allows subsequent calls tocreateComponent()to serve as a factory forUIComponentinstances.- Specified by:
addComponentin classApplication- Parameters:
componentType- - The component type to be registeredcomponentClass- - The fully qualified class name of the correspondingUIComponentimplementation
-
addConverter
public void addConverter(Class<?> targetClass, String converterClass)
Description copied from class:ApplicationRegister a new converter class that is capable of performing conversions for the specified target class.- Specified by:
addConverterin classApplication- Parameters:
targetClass- - The class for which this converter is registeredconverterClass- - The fully qualified class name of the correspondingConverterimplementation
-
addConverter
public void addConverter(String converterId, String converterClass)
Description copied from class:ApplicationRegister a new mapping of converter id to the name of the correspondingConverterclass. This allows subsequent calls to createConverter() to serve as a factory forConverterinstances.- Specified by:
addConverterin classApplication- Parameters:
converterId- - The converterId to be registeredconverterClass- - The fully qualified class name of the correspondingConverterimplementation
-
addDefaultValidatorId
public void addDefaultValidatorId(String validatorId)
- Overrides:
addDefaultValidatorIdin classApplication
-
addELContextListener
public void addELContextListener(javax.el.ELContextListener listener)
Description copied from class:ApplicationProvide a way for Faces applications to register an
ELContextListenerthat will be notified on creation ofELContextinstances.An implementation is provided that throws
UnsupportedOperationExceptionso that users that decorate theApplicationcontinue to work.- Overrides:
addELContextListenerin classApplication
-
addELResolver
public void addELResolver(javax.el.ELResolver resolver)
Description copied from class:ApplicationCause an the argument
resolverto be added to the resolver chain as specified in section 5.5.1 of the JavaServer Faces Specification.It is not possible to remove an
ELResolverregistered with this method, once it has been registered.It is illegal to register an ELResolver after the application has received any requests from the client. If an attempt is made to register a listener after that time, an IllegalStateException must be thrown. This restriction is in place to allow the JSP container to optimize for the common case where no additional
ELResolversare in the chain, aside from the standard ones. It is permissible to addELResolversbefore or after initialization to a CompositeELResolver that is already in the chain.The default implementation throws
UnsupportedOperationExceptionand is provided for the sole purpose of not breaking existing applications that extendApplication.- Overrides:
addELResolverin classApplication
-
addValidator
public void addValidator(String validatorId, String validatorClass)
Description copied from class:ApplicationRegister a new mapping of validator id to the name of the correspondingValidatorclass. This allows subsequent calls tocreateValidator()to serve as a factory forValidatorinstances.- Specified by:
addValidatorin classApplication- Parameters:
validatorId- The validator id to be registeredvalidatorClass- The fully qualified class name of the corresponding Validator implementation
-
createBehavior
public Behavior createBehavior(String behaviorId) throws FacesException
- Overrides:
createBehaviorin classApplication- Returns:
- Throws:
FacesException
-
createComponent
public UIComponent createComponent(FacesContext context, Resource componentResource)
Description copied from class:Application???- Overrides:
createComponentin classApplication- Returns:
-
createComponent
public UIComponent createComponent(FacesContext context, String componentType, String rendererType)
- Overrides:
createComponentin classApplication- Returns:
-
createComponent
public UIComponent createComponent(String componentType) throws FacesException
Description copied from class:ApplicationCreate a new UIComponent subclass, using the mappings defined by previous calls to the addComponent method of this class.
- Specified by:
createComponentin classApplication- Throws:
FacesException- if there is no mapping defined for the specified componentType, or if an instance of the specified type could not be created for any reason.
-
createComponent
public UIComponent createComponent(javax.el.ValueExpression componentExpression, FacesContext context, String componentType, String rendererType)
- Overrides:
createComponentin classApplication- Returns:
-
createComponent
public UIComponent createComponent(javax.el.ValueExpression componentExpression, FacesContext contexte, String componentType) throws FacesException
Description copied from class:ApplicationCall the
getValue()method on the specifiedValueExpression. If it returns ainstance, return it as the value of this method. If it does not, instantiate a newUIComponentinstance of the specified component type, pass the new component to theUIComponentsetValue()method of the specifiedValueExpression, and return it.- Overrides:
createComponentin classApplication- Parameters:
componentExpression- -ValueExpressionrepresenting a component value expression (typically specified by thecomponentattribute of a custom tag)contexte- -FacesContextfor the current requestcomponentType- - Component type to create if the ValueExpression does not return a component instance- Throws:
FacesException- if acannot be createdUIComponent
-
createConverter
public Converter createConverter(Class<?> targetClass)
Description copied from class:ApplicationInstantiate and return a new
instance of the class that has registered itself as capable of performing conversions for objects of the specified type. If no suchConverterclass can be identified, return null.ConverterTo locate an appropriate
class, the following algorithm is performed, stopping as soon as an appropriateConverterclass is found: Locate aConverterregistered for the target class itself. Locate aConverterregistered for interfaces that are implemented by the target class (directly or indirectly). Locate aConverterregistered for the superclass (if any) of the target class, recursively working up the inheritance hierarchy.ConverterIf the
has a single argument constructor that accepts a Class, instantiate theConverterusing that constructor, passing the argumentConvertertargetClassas the sole argument. Otherwise, simply use the zero-argument constructor.- Specified by:
createConverterin classApplication- Parameters:
targetClass- - Target class for which to return aConverter
-
createConverter
public Converter createConverter(String converterId)
Description copied from class:ApplicationInstantiate and return a newinstance of the class specified by a previous call toConverteraddConverter()for the specified converter id. If there is no such registration for this converter id, returnnull.- Specified by:
createConverterin classApplication- Parameters:
converterId- - The converter id for which to create and return a newinstanceConverter
-
createValidator
public Validator createValidator(String validatorId) throws FacesException
Description copied from class:ApplicationInstantiate and return a newinstance of the class specified by a previous call toValidatoraddValidator()for the specified validator id.- Specified by:
createValidatorin classApplication- Parameters:
validatorId- Theid for which to create and return a new Validator instanceValidator- Throws:
FacesException- if aof the specified id cannot be createdValidator
-
evaluateExpressionGet
@Deprecated public <T> T evaluateExpressionGet(FacesContext context, String expression, Class<? extends T> expectedType) throws javax.el.ELException
Deprecated.Description copied from class:ApplicationGet a value by evaluating an expression.
Call
then callApplication.getExpressionFactory()ExpressionFactory.createValueExpression(javax.el.ELContext, java.lang.String, java.lang.Class)passing the argumentexpressionandexpectedType. Calland pass it toFacesContext.getELContext()ValueExpression.getValue(javax.el.ELContext), returning the result.An implementation is provided that throws
UnsupportedOperationExceptionso that users that decorate theApplicationcontinue to work.- Overrides:
evaluateExpressionGetin classApplication- Throws:
javax.el.ELException
-
getActionListener
public ActionListener getActionListener()
Description copied from class:ApplicationReturn the default
ActionListenerto be registered for allActionSourcecomponents in this appication. If not explicitly set, a default implementation must be provided that performs the following functions:- The
processAction()method must first callFacesContext.renderResponse()in order to bypass any intervening lifecycle phases, once the method returns. - The
processAction()method must next determine the logical outcome of this event, as follows: - If the originating component has a non-
null actionproperty, retrieve theMethodExpressionfrom the property, and callinvoke()on it. Convert the returned value (if any) to a String, and use it as the logical outcome. - Otherwise, the logical outcome is null.
- The
processAction()method must finally retrieve theNavigationHandlerinstance for this application and callNavigationHandler.handleNavigation(javax.faces.context.FacesContext, java.lang.String, java.lang.String)passing: - the
FacesContextfor the current request - If there is a
MethodExpressioninstance for theactionproperty of this component, the result of callingExpression.getExpressionString()on it, null otherwise - the logical outcome as determined above
Note that the specification for the default
ActionListenercontiues to call for the use of a deprecated property (action) and class (MethodExpression). Unfortunately, this is necessary because the default ActionListener must continue to work with components that do not implementActionSource2, and only implementActionSource.- Specified by:
getActionListenerin classApplication
- The
-
getBehaviorIds
public Iterator<String> getBehaviorIds()
- Overrides:
getBehaviorIdsin classApplication- Returns:
-
getComponentTypes
public Iterator<String> getComponentTypes()
Description copied from class:ApplicationReturn anIteratorover the set of currently defined component types for thisApplication.- Specified by:
getComponentTypesin classApplication
-
getConverterIds
public Iterator<String> getConverterIds()
Description copied from class:ApplicationReturn anIteratorover the set of currently registered converter ids for thisApplication- Specified by:
getConverterIdsin classApplication- Returns:
-
getConverterTypes
public Iterator<Class<?>> getConverterTypes()
Description copied from class:ApplicationReturn anIteratorover the set ofClassinstances for whichConverterclasseshave been explicitly registered.- Specified by:
getConverterTypesin classApplication- Returns:
-
getDefaultLocale
public Locale getDefaultLocale()
Description copied from class:ApplicationReturn the defaultLocalefor this application. If not explicitly set,nullis returned.- Specified by:
getDefaultLocalein classApplication- Returns:
-
getDefaultRenderKitId
public String getDefaultRenderKitId()
Description copied from class:ApplicationReturn therenderKitIdto be used for rendering this application. If not explicitly set,nullis returned.- Specified by:
getDefaultRenderKitIdin classApplication- Returns:
-
getDefaultValidatorInfo
public Map<String,String> getDefaultValidatorInfo()
- Overrides:
getDefaultValidatorInfoin classApplication- Returns:
-
getELContextListeners
public javax.el.ELContextListener[] getELContextListeners()
Description copied from class:ApplicationIf no calls have been made to
addELContextListener(javax.el.ELContextListener), this method must return an empty array.
Otherwise, return an array representing the list of listeners added by calls to
addELContextListener(javax.el.ELContextListener).An
implementationis provided that throws UnsupportedOperationException so that users that decorate theApplicationcontinue to work.- Overrides:
getELContextListenersin classApplication
-
getELResolver
public javax.el.ELResolver getELResolver()
Description copied from class:ApplicationReturn the singletonELResolverinstance to be used for all EL resolution. This is actually an instance ofCompositeELResolverthat must contain the following ELResolver instances in the following order:ELResolverinstances declared using the <el-resolver> element in the application configuration resources.- An
implementationthat wraps the head of the legacy VariableResolver chain, as per sectionVariableResolver ChainWrapperin Chapter 5 in the spec document. - An
implementationthat wraps the head of the legacy PropertyResolver chain, as per sectionPropertyResolver ChainWrapperin Chapter 5 in the spec document. - Any
ELResolverinstances added by calls to.Application.addELResolver(javax.el.ELResolver) - The default implementation throws
UnsupportedOperationExceptionand is provided for the sole purpose of not breaking existing applications that extend.Application
- Overrides:
getELResolverin classApplication
-
getExpressionFactory
public javax.el.ExpressionFactory getExpressionFactory()
Description copied from class:ApplicationReturn the
ExpressionFactoryinstance for this application. This instance is used by the convenience methodApplication.evaluateExpressionGet(javax.faces.context.FacesContext, java.lang.String, java.lang.Class).The implementation must return the
ExpressionFactoryfrom the JSP container by callingJspFactory.getDefaultFactory().getJspApplicationContext(servletContext).getExpressionFactory().An implementation is provided that throws
UnsupportedOperationExceptionso that users that decorate theApplicationcontinue to work.- Overrides:
getExpressionFactoryin classApplication- Returns:
-
getMessageBundle
public String getMessageBundle()
Description copied from class:ApplicationReturn the fully qualified class name of theResourceBundleto be used for JavaServer Faces messages for this application. If not explicitly set,nullis returned.- Specified by:
getMessageBundlein classApplication
-
getNavigationHandler
public NavigationHandler getNavigationHandler()
Description copied from class:ApplicationReturn theinstance that will be passed the outcome returned by any invoked application action for this web application. If not explicitly set, a default implementation must be provided that performs the functions described in theNavigationHandlerclass description.NavigationHandler- Specified by:
getNavigationHandlerin classApplication
-
getProjectStage
public ProjectStage getProjectStage()
Description copied from class:ApplicationReturn the project stage for the currently running application instance. The default value is
ProjectStage.ProductionThe implementation of this method must perform the following algorithm or an equivalent with the same end result to determine the value to return.
- If the value has already been determined by a previous call to this method, simply return that value.
- Look for a
JNDIenvironment entry under the key given by the value of(return type of java.lang.String). If found, continue with the algorithm below, otherwise, look for an entry in theProjectStage.PROJECT_STAGE_JNDI_NAMEinitParamMapof theExternalContextfrom the currentFacesContextwith the keyProjectStage.PROJECT_STAGE_PARAM_NAME - If a value is found found, see if an enum constant can be obtained by calling
ProjectStage.valueOf(), passing the value from theinitParamMap. If this succeeds without exception, save the value and return it. - If not found, or any of the previous attempts to discover the enum constant value have failed, log a
descriptive error message, assign the value as
ProjectStage.Productionand return it.
- Overrides:
getProjectStagein classApplication
-
getResourceBundle
public ResourceBundle getResourceBundle(FacesContext ctx, String name)
Description copied from class:ApplicationFind a
ResourceBundleas defined in the application configuration resources under the specified name. If aResourceBundlewas defined for the name, return an instance that uses the locale of the current.UIViewRootThe default implementation throws
UnsupportedOperationExceptionand is provided for the sole purpose of not breaking existing applications that extend this class.- Overrides:
getResourceBundlein classApplication- Returns:
ResourceBundlefor the current UIViewRoot, otherwise null
-
getResourceHandler
public ResourceHandler getResourceHandler()
Description copied from class:ApplicationReturn the singleton, stateless, thread-safe
for this application. The JSF implementation must support the following techniques for declaring an alternate implementation ofResourceHandlerResourceHandler.- The
ResourceHandlerimplementation is declared in the application configuration resources by giving the fully qualified class name as the value of the<resource-handler>element within theapplicationelement. - RELEASE_PENDING(edburns) It can also be declared via an annotation as specified in [287-ConfigAnnotations].
In all of the above cases, the runtime must employ the decorator pattern as for every other pluggable artifact in JSF.
- Overrides:
getResourceHandlerin classApplication
- The
-
getStateManager
public StateManager getStateManager()
Description copied from class:ApplicationReturn theStateManagerinstance that will be utilized during the Restore View and Render Response phases of the request processing lifecycle. If not explicitly set, a default implementation must be provided that performs the functions described in theStateManagerdescription in the JavaServer Faces Specification.- Specified by:
getStateManagerin classApplication
-
getSupportedLocales
public Iterator<Locale> getSupportedLocales()
Description copied from class:ApplicationReturn anIteratorover the supportedLocalesfor this appication.- Specified by:
getSupportedLocalesin classApplication
-
getValidatorIds
public Iterator<String> getValidatorIds()
Description copied from class:ApplicationReturn anIteratorover the set of currently registered validator ids for thisApplication.- Specified by:
getValidatorIdsin classApplication
-
getViewHandler
public ViewHandler getViewHandler()
Description copied from class:ApplicationSet theinstance that will be utilized during theViewHandlerRestore View and Render Responsephases of the request processing lifecycle.- Specified by:
getViewHandlerin classApplication- Returns:
-
getWrapped
public Application getWrapped()
Description copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.- Specified by:
getWrappedin interfaceFacesWrapper<Application>- Returns:
- the instance of the class being wrapped
-
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)
Description copied from class:ApplicationIf there are one or more listeners for events of the type represented by
systemEventClass, call those listeners,passing source as thesourceof the event. The implementation should be as fast as possible in determining whether or not a listener for the givensystemEventClassandsourcehas been installed, and should return immediately once such a determination has been made. The implementation ofpublishEventmust honor the requirements stated inApplication.subscribeToEvent(java.lang.Class, java.lang.Class, javax.faces.event.SystemEventListener)The default implementation must implement an algorithm semantically equivalent to the following to locate listener instances and to invoke them.
- If the
sourceargument implements, callSystemEventListenerHolderon it, passing theSystemEventListenerHolder.getListenersForEventClass(java.lang.Class)systemEventClassargument. If the list is not empty, perform algorithmtraverseListenerListon the list. - If any
Applicationlevel listeners have been installed by previous calls to, perform algorithmApplication.subscribeToEvent(java.lang.Class, java.lang.Class, SystemEventListener)traverseListenerListon the list. - If any
Applicationlevel listeners have been installed by previous calls to, perform algorithmApplication.subscribeToEvent(java.lang.Class, SystemEventListener)traverseListenerListon the list.
If the act of invoking the
processListenermethod causes anto be thrown, processing of the listeners must be aborted.AbortProcessingExceptionAlgorithm
traverseListenerList: For each listener in the list,- Call
, passing theSystemEventListener.isListenerForSource(java.lang.Object)sourceargument. If this returnsfalse, take no action on the listener. - Otherwise, if the event to be passed to the listener instances has not yet been constructed, construct the
event, passing
sourceas the argument to the one-argument constructor that takes anObject. This same event instance must be passed to all listener instances. - Call
, passing the listener instance as the argument. If this returnsSystemEvent.isAppropriateListener(javax.faces.event.FacesListener)false, take no action on the listener. - Call
, passing the listener instance.SystemEvent.processListener(javax.faces.event.FacesListener)
- Overrides:
publishEventin classApplicationsystemEventClass- - The Class of event that is being published. Must be non-null.source- - Thesourcefor the event of type systemEventClass. Must be non-null, and must implement.SystemEventListenerHolder
- If the
-
removeELContextListener
public void removeELContextListener(javax.el.ELContextListener listener)
Description copied from class:ApplicationRemove the argument
listenerfrom the list ofELContextListeners. Iflisteneris null, no exception is thrown and no action is performed. Iflisteneris not in the list, no exception is thrown and no action is performed.An implementation is provided that throws
UnsupportedOperationExceptionso that users that decorate theApplicationcontinue to work.- Overrides:
removeELContextListenerin classApplication
-
setActionListener
public void setActionListener(ActionListener listener)
Description copied from class:ApplicationSet the defaultto be registered for allActionListenercomponents.ActionSource- Specified by:
setActionListenerin classApplication- Parameters:
listener- - The new defaultActionListener
-
setDefaultLocale
public void setDefaultLocale(Locale locale)
Description copied from class:ApplicationSet the defaultLocalefor this application.- Specified by:
setDefaultLocalein classApplication- Parameters:
locale- - The new defaultLocale
-
setDefaultRenderKitId
public void setDefaultRenderKitId(String renderKitId)
Description copied from class:ApplicationReturn therenderKitIdto be used for rendering this application. If not explicitly set,nullis returned.- Specified by:
setDefaultRenderKitIdin classApplication
-
setMessageBundle
public void setMessageBundle(String bundle)
Description copied from class:ApplicationSet the fully qualified class name of theResourceBundleto be used for JavaServer Faces messages for this application. See the JavaDocs for thejava.util.ResourceBundleclass for more information about the syntax for resource bundle names.- Specified by:
setMessageBundlein classApplication- Parameters:
bundle- - Base name of the resource bundle to be used
-
setNavigationHandler
public void setNavigationHandler(NavigationHandler handler)
Description copied from class:ApplicationSet theNavigationHandlerinstance that will be passed the outcome returned by any invoked application action for this web application.- Specified by:
setNavigationHandlerin classApplication- Parameters:
handler- - The new NavigationHandler instance
-
setResourceHandler
public void setResourceHandler(ResourceHandler resourceHandler)
- Overrides:
setResourceHandlerin classApplication
-
setStateManager
public void setStateManager(StateManager manager)
Description copied from class:ApplicationSet theStateManagerinstance that will be utilized during theRestore View and Render Responsephases of the request processing lifecycle.- Specified by:
setStateManagerin classApplication- Parameters:
manager- The newStateManagerinstance
-
setSupportedLocales
public void setSupportedLocales(Collection<Locale> locales)
Description copied from class:ApplicationSet theLocaleinstances representing the supportedLocalesfor this application.- Specified by:
setSupportedLocalesin classApplication- Parameters:
locales- The set of supportedLocalesfor this application
-
setViewHandler
public void setViewHandler(ViewHandler handler)
Description copied from class:ApplicationSet theViewHandlerinstance that will be utilized during theRestore View and Render Responsephases of the request processing lifecycle.- Specified by:
setViewHandlerin classApplication- Parameters:
handler- - The newViewHandlerinstance
-
subscribeToEvent
public void subscribeToEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener)
- Overrides:
subscribeToEventin classApplication
-
subscribeToEvent
public void subscribeToEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)
- Overrides:
subscribeToEventin classApplication
-
unsubscribeFromEvent
public void unsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener)
- Overrides:
unsubscribeFromEventin classApplication
-
unsubscribeFromEvent
public void unsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener)
- Overrides:
unsubscribeFromEventin classApplication
-
setFlowHandler
public void setFlowHandler(FlowHandler flowHandler)
- Overrides:
setFlowHandlerin classApplication
-
getFlowHandler
public FlowHandler getFlowHandler()
- Overrides:
getFlowHandlerin classApplication- Returns:
-
setSearchExpressionHandler
public void setSearchExpressionHandler(SearchExpressionHandler searchExpressionHandler)
- Overrides:
setSearchExpressionHandlerin classApplication
-
getSearchExpressionHandler
public SearchExpressionHandler getSearchExpressionHandler()
- Overrides:
getSearchExpressionHandlerin classApplication- Returns:
-
getSearchKeywordResolver
public SearchKeywordResolver getSearchKeywordResolver()
- Overrides:
getSearchKeywordResolverin classApplication
-
addSearchKeywordResolver
public void addSearchKeywordResolver(SearchKeywordResolver resolver)
- Overrides:
addSearchKeywordResolverin classApplication
-
-