java.lang.Object
jakarta.faces.application.ApplicationFactory
org.omnifaces.application.OmniApplicationFactory
- All Implemented Interfaces:
FacesWrapper<ApplicationFactory>
This application factory takes care that the
OmniApplication is properly initialized.- Since:
- 1.6
- Author:
- Radu Creanga <rdcrng@gmail.com>, Bauke Scholtz
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOmniApplicationFactory(ApplicationFactory wrapped) Construct a new OmniFaces application factory around the given wrapped factory. -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance ofOmniApplicationwhich wraps the original application.voidsetApplication(Application application) Sets the given application instance as the current instance.Methods inherited from class jakarta.faces.application.ApplicationFactory
getWrapped
-
Constructor Details
-
OmniApplicationFactory
Construct a new OmniFaces application factory around the given wrapped factory.- Parameters:
wrapped- The wrapped factory.
-
-
Method Details
-
getApplication
Returns an instance ofOmniApplicationwhich wraps the original application.- Specified by:
getApplicationin classApplicationFactory
-
setApplication
Sets the given application instance as the current instance. If it's not an instance ofOmniApplication, nor wraps theOmniApplication, then it will be wrapped by a new instance ofOmniApplication.- Specified by:
setApplicationin classApplicationFactory
-