public class RenderKitFactoryImpl extends RenderKitFactory
Modifier and Type | Field and Description |
---|---|
protected String |
className |
protected String |
renderKitId |
protected ConcurrentHashMap<String,RenderKit> |
renderKits |
HTML_BASIC_RENDER_KIT
Constructor and Description |
---|
RenderKitFactoryImpl()
Constructor registers default Render kit.
|
Modifier and Type | Method and Description |
---|---|
void |
addRenderKit(String renderKitId,
RenderKit renderKit)
Register the specified
RenderKit instance, associated with
the specified renderKitId , to be supported by this
RenderKitFactory , replacing any previously registered
RenderKit for this identifier. |
RenderKit |
getRenderKit(FacesContext context,
String renderKitId)
Return a
RenderKit instance for the specified render
kit identifier, possibly customized based on dynamic
characteristics of the specified FacesContext , if
non-null . |
Iterator<String> |
getRenderKitIds()
Return an
Iterator over the set of render kit
identifiers registered with this factory. |
getWrapped
protected String renderKitId
protected String className
protected ConcurrentHashMap<String,RenderKit> renderKits
public RenderKitFactoryImpl()
public void addRenderKit(String renderKitId, RenderKit renderKit)
RenderKitFactory
Register the specified RenderKit
instance, associated with
the specified renderKitId
, to be supported by this
RenderKitFactory
, replacing any previously registered
RenderKit
for this identifier.
addRenderKit
in class RenderKitFactory
renderKitId
- Identifier of the RenderKit
to registerrenderKit
- RenderKit
instance that we are registeringpublic RenderKit getRenderKit(FacesContext context, String renderKitId)
RenderKitFactory
Return a RenderKit
instance for the specified render
kit identifier, possibly customized based on dynamic
characteristics of the specified FacesContext
, if
non-null
. If there is no registered RenderKit
for the specified identifier, return
null
. The set of available render kit identifiers
is available via the getRenderKitIds()
method.
getRenderKit
in class RenderKitFactory
context
- FacesContext for the request currently being
processed, or null
if none is available.renderKitId
- Render kit identifier of the requested
RenderKit
instanceRenderKit
instancepublic Iterator<String> getRenderKitIds()
RenderKitFactory
Return an Iterator
over the set of render kit
identifiers registered with this factory. This set must include
the value specified by RenderKitFactory.HTML_BASIC_RENDER_KIT
.
getRenderKitIds
in class RenderKitFactory
Iterator
over the set of render kit identifiersComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.