Package com.sun.faces.application
Class InjectionApplicationFactory
java.lang.Object
jakarta.faces.application.ApplicationFactory
com.sun.faces.application.InjectionApplicationFactory
- All Implemented Interfaces:
FacesWrapper<ApplicationFactory>
public class InjectionApplicationFactory extends 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
Constructors Constructor Description InjectionApplicationFactory(ApplicationFactory delegate)
-
Method Summary
Modifier and Type Method Description Application
getApplication()
Create (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.
-
Constructor Details
-
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
-