org.apache.myfaces.view.facelets.compiler
Class Compiler

java.lang.Object
  extended by org.apache.myfaces.view.facelets.compiler.Compiler
Direct Known Subclasses:
SAXCompiler

public abstract class Compiler
extends Object

A Compiler instance may handle compiling multiple sources

Version:
$Id: Compiler.java 1300255 2012-03-13 17:38:54Z lu4242 $
Author:
Jacob Hookom

Field Summary
static String EXPRESSION_FACTORY
           
protected static Logger log
           
 
Constructor Summary
Compiler()
           
 
Method Summary
 void addTagDecorator(TagDecorator decorator)
           
 void addTagLibrary(TagLibrary library)
           
 FaceletHandler compile(URL src, String alias)
           
 FaceletHandler compileCompositeComponentMetadata(URL src, String alias)
           
 FaceletHandler compileViewMetadata(URL src, String alias)
           
 javax.el.ExpressionFactory createExpressionFactory()
           
 TagDecorator createTagDecorator()
           
 TagLibrary createTagLibrary()
           
protected abstract  FaceletHandler doCompile(URL src, String alias)
           
protected abstract  FaceletHandler doCompileCompositeComponentMetadata(URL src, String alias)
           
protected abstract  FaceletHandler doCompileViewMetadata(URL src, String alias)
           
 Collection<FaceletsProcessing> getFaceletsProcessingConfigurations()
           
 String getFeature(String name)
           
 boolean isDevelopmentProjectStage()
           
 boolean isTrimmingComments()
           
 boolean isTrimmingWhitespace()
           
 boolean isValidating()
           
 void setDevelopmentProjectStage(boolean developmentProjectStage)
           
 void setFaceletsProcessingConfigurations(Collection<FaceletsProcessing> faceletsProcessingConfigurations)
           
 void setFeature(String name, String value)
           
 void setTrimmingComments(boolean trimmingComments)
           
 void setTrimmingWhitespace(boolean trimmingWhitespace)
           
 void setValidating(boolean validating)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log

EXPRESSION_FACTORY

public static final String EXPRESSION_FACTORY
See Also:
Constant Field Values
Constructor Detail

Compiler

public Compiler()
Method Detail

compile

public final FaceletHandler compile(URL src,
                                    String alias)
                             throws IOException,
                                    FaceletException,
                                    javax.el.ELException,
                                    FacesException
Throws:
IOException
FaceletException
javax.el.ELException
FacesException

compileViewMetadata

public final FaceletHandler compileViewMetadata(URL src,
                                                String alias)
                                         throws IOException,
                                                FaceletException,
                                                javax.el.ELException,
                                                FacesException
Throws:
IOException
FaceletException
javax.el.ELException
FacesException

compileCompositeComponentMetadata

public final FaceletHandler compileCompositeComponentMetadata(URL src,
                                                              String alias)
                                                       throws IOException,
                                                              FaceletException,
                                                              javax.el.ELException,
                                                              FacesException
Throws:
IOException
FaceletException
javax.el.ELException
FacesException

doCompile

protected abstract FaceletHandler doCompile(URL src,
                                            String alias)
                                     throws IOException,
                                            FaceletException,
                                            javax.el.ELException,
                                            FacesException
Throws:
IOException
FaceletException
javax.el.ELException
FacesException

doCompileViewMetadata

protected abstract FaceletHandler doCompileViewMetadata(URL src,
                                                        String alias)
                                                 throws IOException,
                                                        FaceletException,
                                                        javax.el.ELException,
                                                        FacesException
Throws:
IOException
FaceletException
javax.el.ELException
FacesException

doCompileCompositeComponentMetadata

protected abstract FaceletHandler doCompileCompositeComponentMetadata(URL src,
                                                                      String alias)
                                                               throws IOException,
                                                                      FaceletException,
                                                                      javax.el.ELException,
                                                                      FacesException
Throws:
IOException
FaceletException
javax.el.ELException
FacesException

createTagDecorator

public final TagDecorator createTagDecorator()

addTagDecorator

public final void addTagDecorator(TagDecorator decorator)

createExpressionFactory

public final javax.el.ExpressionFactory createExpressionFactory()

createTagLibrary

public final TagLibrary createTagLibrary()

addTagLibrary

public final void addTagLibrary(TagLibrary library)

setFeature

public final void setFeature(String name,
                             String value)

getFeature

public final String getFeature(String name)

isTrimmingComments

public final boolean isTrimmingComments()

setTrimmingComments

public final void setTrimmingComments(boolean trimmingComments)

isTrimmingWhitespace

public final boolean isTrimmingWhitespace()

setTrimmingWhitespace

public final void setTrimmingWhitespace(boolean trimmingWhitespace)

isValidating

public final boolean isValidating()

setValidating

public final void setValidating(boolean validating)

isDevelopmentProjectStage

public final boolean isDevelopmentProjectStage()

setDevelopmentProjectStage

public final void setDevelopmentProjectStage(boolean developmentProjectStage)

getFaceletsProcessingConfigurations

public Collection<FaceletsProcessing> getFaceletsProcessingConfigurations()
Returns:
Since:
2.1.0

setFaceletsProcessingConfigurations

public void setFaceletsProcessingConfigurations(Collection<FaceletsProcessing> faceletsProcessingConfigurations)
Since:
2.1.0


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