org.apache.myfaces.view.facelets
Class AbstractFaceletCache<V>

java.lang.Object
  extended by javax.faces.view.facelets.FaceletCache<V>
      extended by org.apache.myfaces.view.facelets.AbstractFaceletCache<V>

public abstract class AbstractFaceletCache<V>
extends FaceletCache<V>

Extended FaceletCache contract that supports additional Myfaces specific concepts that are necessary to implement.

Since:
2.1.12
Author:
Leonardo Uribe

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.faces.view.facelets.FaceletCache
FaceletCache.MemberFactory<V>
 
Constructor Summary
AbstractFaceletCache()
           
 
Method Summary
abstract  V getCompositeComponentMetadataFacelet(URL url)
          Retrieve or create a Facelet instance used to create composite component metadata from the cache.
protected  FaceletCache.MemberFactory<V> getCompositeComponentMetadataMemberFactory()
           
 V getFacelet(FaceletContext ctx, URL url)
          Retrieve a Facelet instance from the cache given the passed url, but taking into account the facelet context too, so the cache can implement special rules according to the context for recompile the facelet if necessary.
abstract  boolean isCompositeComponentMetadataFaceletCached(URL url)
          Check if the composite component metadata facelet associated with the url is cached or not.
protected  void setMemberFactories(FaceletCache.MemberFactory<V> faceletFactory, FaceletCache.MemberFactory<V> viewMetadataFaceletFactory, FaceletCache.MemberFactory<V> compositeComponentMetadataFaceletFactory)
          Set the factories used for create Facelet instances.
 
Methods inherited from class javax.faces.view.facelets.FaceletCache
getFacelet, getMemberFactory, getMetadataMemberFactory, getViewMetadataFacelet, isFaceletCached, isViewMetadataFaceletCached, setMemberFactories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFaceletCache

public AbstractFaceletCache()
Method Detail

getFacelet

public V getFacelet(FaceletContext ctx,
                    URL url)
             throws IOException
Retrieve a Facelet instance from the cache given the passed url, but taking into account the facelet context too, so the cache can implement special rules according to the context for recompile the facelet if necessary.

Parameters:
ctx -
url -
Returns:
Throws:
IOException

getCompositeComponentMetadataFacelet

public abstract V getCompositeComponentMetadataFacelet(URL url)
                                                throws IOException
Retrieve or create a Facelet instance used to create composite component metadata from the cache.

Parameters:
url -
Returns:
Throws:
IOException

isCompositeComponentMetadataFaceletCached

public abstract boolean isCompositeComponentMetadataFaceletCached(URL url)
Check if the composite component metadata facelet associated with the url is cached or not.

Parameters:
url -
Returns:

setMemberFactories

protected void setMemberFactories(FaceletCache.MemberFactory<V> faceletFactory,
                                  FaceletCache.MemberFactory<V> viewMetadataFaceletFactory,
                                  FaceletCache.MemberFactory<V> compositeComponentMetadataFaceletFactory)
Set the factories used for create Facelet instances.

Parameters:
faceletFactory -
viewMetadataFaceletFactory -
compositeComponentMetadataFaceletFactory -

getCompositeComponentMetadataMemberFactory

protected FaceletCache.MemberFactory<V> getCompositeComponentMetadataMemberFactory()
Returns:


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.