javax.faces.view.facelets
Class FaceletFactoryWrapper

java.lang.Object
  extended by javax.faces.view.facelets.FaceletFactory
      extended by javax.faces.view.facelets.FaceletFactoryWrapper
All Implemented Interfaces:
FacesWrapper<FaceletFactory>

public class FaceletFactoryWrapper
extends FaceletFactory
implements FacesWrapper<FaceletFactory>

Provides a simple implementation of FaceletFactory that can be subclassed by developers wishing to provide specialized behavior to an existing FaceletFactory instance. The default implementation of all methods is to call through to the wrapped FaceletFactory instance.

getWrapped() to return the instance being wrapping.

Since:
2.2

Constructor Summary
FaceletFactoryWrapper(FaceletFactory wrapped)
           
 
Method Summary
 UIComponent createComponent(String taglibURI, String tagName, Map<String,Object> attributes)
           
 Facelet getFacelet(String uri)
          Return a Facelet instance as specified by the file at the passed URI.
 Facelet getFacelet(URL url)
           
 Facelet getMetadataFacelet(String uri)
           
 Facelet getMetadataFacelet(URL url)
           
 long getRefreshPeriod()
           
 FaceletFactory getWrapped()
          

A class that implements this interface uses this method to return an instance of the class being wrapped.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaceletFactoryWrapper

public FaceletFactoryWrapper(FaceletFactory wrapped)
Method Detail

getWrapped

public FaceletFactory getWrapped()
Description copied from interface: FacesWrapper

A class that implements this interface uses this method to return an instance of the class being wrapped.

Specified by:
getWrapped in interface FacesWrapper<FaceletFactory>

createComponent

public UIComponent createComponent(String taglibURI,
                                   String tagName,
                                   Map<String,Object> attributes)
Specified by:
createComponent in class FaceletFactory

getFacelet

public Facelet getFacelet(String uri)
                   throws IOException
Description copied from class: FaceletFactory
Return a Facelet instance as specified by the file at the passed URI.

Specified by:
getFacelet in class FaceletFactory
Throws:
IOException

getFacelet

public Facelet getFacelet(URL url)
                   throws IOException
Specified by:
getFacelet in class FaceletFactory
Throws:
IOException

getMetadataFacelet

public Facelet getMetadataFacelet(String uri)
                           throws IOException
Specified by:
getMetadataFacelet in class FaceletFactory
Throws:
IOException

getMetadataFacelet

public Facelet getMetadataFacelet(URL url)
                           throws IOException
Specified by:
getMetadataFacelet in class FaceletFactory
Throws:
IOException

getRefreshPeriod

public long getRefreshPeriod()
Specified by:
getRefreshPeriod in class FaceletFactory


Copyright 2002-2010 Oracle America Inc, Inc. All Rights Reserved.