RenderKitFactory is a factory object that
registers and returns RenderKit instances. Implementations of Jakarta Faces must provide at least a
default implementation of RenderKit. Advanced implementations (or external third party libraries) may provide
additional RenderKit implementations (keyed by render kit identifiers) for performing different types of
rendering for the same components.
There must be one RenderKitFactory instance per web application that is utilizing Jakarta Faces. This
instance can be acquired, in a portable manner, by calling:
RenderKitFactory factory = (RenderKitFactory) FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped to
access the instance being wrapped.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | HTML_BASIC_RENDER_KIT
The render kit identifier of the default |
| private RenderKitFactory |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RenderKitFactory(RenderKitFactory
The implementation being wrapped. wrapped)If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | addRenderKit(String
Identifier of the renderKitId, RenderKit RenderKit to registerRenderKit instance that we are registering
Register the specified |
| public abstract RenderKit | Returns: aRenderKit instanceFacesContext for the request currently being processed, or context, String null if none is available.Render kit identifier of the requested renderKitId)RenderKit instance
Return a |
| public abstract Iterator | Returns: anIterator over the set of render kit identifiers
Return an |
| public RenderKitFactory | getWrapped()
Implements jakarta. If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. |
| HTML_BASIC_RENDER_KIT | back to summary |
|---|---|
| public static final String HTML_BASIC_RENDER_KIT
The render kit identifier of the default | |
| wrapped | back to summary |
|---|---|
| private RenderKitFactory wrapped | |
| RenderKitFactory | back to summary |
|---|---|
| public RenderKitFactory()
Deprecated Use the other constructor taking the implementation being wrapped.
| |
| RenderKitFactory | back to summary |
|---|---|
| public RenderKitFactory(RenderKitFactory wrapped)
If this factory has been decorated, the implementation doing the decorating should push the implementation being
wrapped to this constructor. The
| |
| addRenderKit | back to summary |
|---|---|
| public abstract void addRenderKit(String renderKitId, RenderKit renderKit)
Register the specified
| |
| getRenderKit | back to summary |
|---|---|
| public abstract RenderKit getRenderKit(FacesContext context, String renderKitId)
Return a
| |
| getRenderKitIds | back to summary |
|---|---|
| public abstract Iterator
Return an | |
| getWrapped | back to summary |
|---|---|
| public RenderKitFactory getWrapped() Implements jakarta. If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped.
| |