- java.lang.Object
-
- jakarta.faces.context.ExternalContextFactory
-
- org.omnifaces.context.OmniExternalContextFactory
-
- All Implemented Interfaces:
FacesWrapper<ExternalContextFactory>
public class OmniExternalContextFactory extends ExternalContextFactory
This external context factory takes care that theOmniExternalContext
is properly initialized.- Since:
- 2.2
- Author:
- Bauke Scholtz
- See Also:
OmniExternalContext
-
-
Constructor Summary
Constructors Constructor Description OmniExternalContextFactory(ExternalContextFactory wrapped)
Construct a new OmniFaces external context factory around the given wrapped factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalContext
getExternalContext(Object context, Object request, Object response)
Returns a new instance ofOmniExternalContext
which wraps the original external context.-
Methods inherited from class jakarta.faces.context.ExternalContextFactory
getWrapped
-
-
-
-
Constructor Detail
-
OmniExternalContextFactory
public OmniExternalContextFactory(ExternalContextFactory wrapped)
Construct a new OmniFaces external context factory around the given wrapped factory.- Parameters:
wrapped
- The wrapped factory.
-
-
Method Detail
-
getExternalContext
public ExternalContext getExternalContext(Object context, Object request, Object response)
Returns a new instance ofOmniExternalContext
which wraps the original external context.- Specified by:
getExternalContext
in classExternalContextFactory
-
-