Package org.omnifaces.application
Class OmniApplicationFactory
- java.lang.Object
-
- jakarta.faces.application.ApplicationFactory
-
- org.omnifaces.application.OmniApplicationFactory
-
- All Implemented Interfaces:
FacesWrapper<ApplicationFactory>
public class OmniApplicationFactory extends ApplicationFactory
This application factory takes care that theOmniApplication
is properly initialized.- Since:
- 1.6
- Author:
- Radu Creanga <rdcrng@gmail.com>, Bauke Scholtz
- See Also:
OmniApplication
-
-
Constructor Summary
Constructors Constructor Description OmniApplicationFactory(ApplicationFactory wrapped)
Construct a new OmniFaces application factory around the given wrapped factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Application
getApplication()
Returns an instance ofOmniApplication
which wraps the original application.void
setApplication(Application application)
Sets the given application instance as the current instance.-
Methods inherited from class jakarta.faces.application.ApplicationFactory
getWrapped
-
-
-
-
Constructor Detail
-
OmniApplicationFactory
public OmniApplicationFactory(ApplicationFactory wrapped)
Construct a new OmniFaces application factory around the given wrapped factory.- Parameters:
wrapped
- The wrapped factory.
-
-
Method Detail
-
getApplication
public Application getApplication()
Returns an instance ofOmniApplication
which wraps the original application.- Specified by:
getApplication
in classApplicationFactory
-
setApplication
public void setApplication(Application application)
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:
setApplication
in classApplicationFactory
-
-