Package com.sun.faces.renderkit
Class RenderKitFactoryImpl
- java.lang.Object
-
- jakarta.faces.render.RenderKitFactory
-
- com.sun.faces.renderkit.RenderKitFactoryImpl
-
- All Implemented Interfaces:
FacesWrapper<RenderKitFactory>
public class RenderKitFactoryImpl extends RenderKitFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected String
className
protected String
renderKitId
protected ConcurrentHashMap<String,RenderKit>
renderKits
-
Fields inherited from class jakarta.faces.render.RenderKitFactory
HTML_BASIC_RENDER_KIT
-
-
Constructor Summary
Constructors Constructor Description RenderKitFactoryImpl()
Constructor registers default Render kit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRenderKit(String renderKitId, RenderKit renderKit)
Register the specifiedRenderKit
instance, associated with the specifiedrenderKitId
, to be supported by thisRenderKitFactory
, replacing any previously registeredRenderKit
for this identifier.RenderKit
getRenderKit(FacesContext context, String renderKitId)
Return aRenderKit
instance for the specified render kit identifier, possibly customized based on dynamic characteristics of the specifiedFacesContext
, if non-null
.Iterator<String>
getRenderKitIds()
Return anIterator
over the set of render kit identifiers registered with this factory.-
Methods inherited from class jakarta.faces.render.RenderKitFactory
getWrapped
-
-
-
-
Field Detail
-
renderKitId
protected String renderKitId
-
className
protected String className
-
renderKits
protected ConcurrentHashMap<String,RenderKit> renderKits
-
-
Method Detail
-
addRenderKit
public void addRenderKit(String renderKitId, RenderKit renderKit)
Description copied from class:RenderKitFactory
Register the specified
RenderKit
instance, associated with the specifiedrenderKitId
, to be supported by thisRenderKitFactory
, replacing any previously registeredRenderKit
for this identifier.- Specified by:
addRenderKit
in classRenderKitFactory
- Parameters:
renderKitId
- Identifier of theRenderKit
to registerrenderKit
-RenderKit
instance that we are registering
-
getRenderKit
public RenderKit getRenderKit(FacesContext context, String renderKitId)
Description copied from class:RenderKitFactory
Return a
RenderKit
instance for the specified render kit identifier, possibly customized based on dynamic characteristics of the specifiedFacesContext
, if non-null
. If there is no registeredRenderKit
for the specified identifier, returnnull
. The set of available render kit identifiers is available via thegetRenderKitIds()
method.- Specified by:
getRenderKit
in classRenderKitFactory
- Parameters:
context
- FacesContext for the request currently being processed, ornull
if none is available.renderKitId
- Render kit identifier of the requestedRenderKit
instance- Returns:
- a
RenderKit
instance
-
getRenderKitIds
public Iterator<String> getRenderKitIds()
Description copied from class:RenderKitFactory
Return an
Iterator
over the set of render kit identifiers registered with this factory. This set must include the value specified byRenderKitFactory.HTML_BASIC_RENDER_KIT
.- Specified by:
getRenderKitIds
in classRenderKitFactory
- Returns:
- an
Iterator
over the set of render kit identifiers
-
-