Keel 2.1RC2

org.keel.faces.renderkit
Class RenderKitFactoryImpl

java.lang.Object
  extended byRenderKitFactory
      extended byorg.keel.faces.renderkit.RenderKitFactoryImpl

public class RenderKitFactoryImpl
extends RenderKitFactory

A factory that coughs up the proper render kit when asked for it. Glorified hashmap :-) Each rendering JSF connector (e.g. for Cocoon, Struts, Velocity, etc) must register it's own appropriate RenderKit with the factory during initialization, as it doesn't know anything when it first starts...

See Also:
Serialized Form

Field Summary
private static java.util.Map myKits
           
 
Constructor Summary
RenderKitFactoryImpl()
           
 
Method Summary
 void addRenderKit(java.lang.String id, RenderKit newKit)
          Tell the factory about a kit, associating it with an ID
 RenderKit getRenderKit(java.lang.String id)
           
 RenderKit getRenderKit(java.lang.String id, FacesContext facescontext)
           
 java.util.Iterator getRenderKitIds()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myKits

private static java.util.Map myKits
Constructor Detail

RenderKitFactoryImpl

public RenderKitFactoryImpl()
Method Detail

addRenderKit

public void addRenderKit(java.lang.String id,
                         RenderKit newKit)
Tell the factory about a kit, associating it with an ID


getRenderKit

public RenderKit getRenderKit(java.lang.String id)
                       throws FacesException
Throws:
FacesException

getRenderKit

public RenderKit getRenderKit(java.lang.String id,
                              FacesContext facescontext)
                       throws FacesException
Throws:
FacesException

getRenderKitIds

public java.util.Iterator getRenderKitIds()

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.