java.lang.Object
jakarta.faces.application.ApplicationFactory
com.sun.faces.application.InjectionApplicationFactory
- All Implemented Interfaces:
FacesWrapper<ApplicationFactory>
This
ApplicationFactory
is responsible for injecting the default
Application
instance into the top-level Application
as configured by the runtime. Doing this allows
us to preserve backwards compatibility as the API evolves without having the API rely on implementation specific
details.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate (if needed) and return anApplication
instance for this web application.void
setApplication
(Application application) Replace theApplication
instance that will be returned for this web application.Methods inherited from class jakarta.faces.application.ApplicationFactory
getWrapped
-
Constructor Details
-
InjectionApplicationFactory
-
-
Method Details
-
getApplication
Description copied from class:ApplicationFactory
Create (if needed) and return an
Application
instance for this web application.- Specified by:
getApplication
in classApplicationFactory
- Returns:
- the application.
-
setApplication
Description copied from class:ApplicationFactory
Replace the
Application
instance that will be returned for this web application.- Specified by:
setApplication
in classApplicationFactory
- Parameters:
application
- The replacementApplication
instance
-