org.apache.myfaces.extensions.validator.core.renderkit
Class AbstractRenderKitWrapperFactory

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.renderkit.AbstractRenderKitWrapperFactory
All Implemented Interfaces:
ClassMappingFactory<javax.faces.render.RenderKit,javax.faces.render.RenderKit>
Direct Known Subclasses:
DefaultRenderKitWrapperFactory

public abstract class AbstractRenderKitWrapperFactory
extends java.lang.Object
implements ClassMappingFactory<javax.faces.render.RenderKit,javax.faces.render.RenderKit>

Base for all RenderKitWrapperFactories to force a specific behaviour

Since:
1.x.1
Author:
Gerhard Petracek

Field Summary
protected  org.apache.commons.logging.Log logger
           
protected  AbstractRenderKitWrapperFactory wrapped
           
 
Constructor Summary
protected AbstractRenderKitWrapperFactory()
           
 
Method Summary
 void addRenderKitWrapperFactory(AbstractRenderKitWrapperFactory renderKitWrapperFactory)
           
 javax.faces.render.RenderKit create(javax.faces.render.RenderKit renderKit)
           
protected abstract  javax.faces.render.RenderKit createWrapper(javax.faces.render.RenderKit renderKit)
           
 void deactivate()
           
protected  boolean isApplicationInitialized()
          simple test for early config in case of mojarra (incl.
 boolean isDeactivated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger

wrapped

protected AbstractRenderKitWrapperFactory wrapped
Constructor Detail

AbstractRenderKitWrapperFactory

protected AbstractRenderKitWrapperFactory()
Method Detail

addRenderKitWrapperFactory

public void addRenderKitWrapperFactory(AbstractRenderKitWrapperFactory renderKitWrapperFactory)

deactivate

public void deactivate()

isDeactivated

public boolean isDeactivated()

create

public final javax.faces.render.RenderKit create(javax.faces.render.RenderKit renderKit)
Specified by:
create in interface ClassMappingFactory<javax.faces.render.RenderKit,javax.faces.render.RenderKit>

createWrapper

protected abstract javax.faces.render.RenderKit createWrapper(javax.faces.render.RenderKit renderKit)

isApplicationInitialized

protected boolean isApplicationInitialized()
simple test for early config in case of mojarra (incl. the combination with trinidad). use a custom extval context impl. (see EXTVAL-58) to optimize this check for the target runtime. this check works for all current implementations since the jsf internals are autom. ready during a request

Returns:
true if the jsf impl. is initialized and it's possible to use it as expected


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.