Home » Mojarra-2.0.1 » javax » faces » render » [javadoc | source]
javax.faces.render
abstract public class: RenderKitFactory [javadoc | source]
java.lang.Object
   javax.faces.render.RenderKitFactory

All Implemented Interfaces:
    FacesWrapper

RenderKitFactory is a factory object that registers and returns RenderKit instances. Implementations of JavaServer 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 JavaServer Faces. This instance can be acquired, in a portable manner, by calling:

  RenderKitFactory factory = (RenderKitFactory)
   FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
Field Summary
public static final  String HTML_BASIC_RENDER_KIT   

The render kit identifier of the default RenderKit instance for this JavaServer Faces implementation.

 
Method from javax.faces.render.RenderKitFactory Summary:
addRenderKit,   getRenderKit,   getRenderKitIds,   getWrapped
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.faces.render.RenderKitFactory Detail:
 abstract public  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.

 abstract public 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. 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.

 abstract public Iterator<String> getRenderKitIds()

    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.

 public RenderKitFactory getWrapped() 

    If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null.