com.sun.facelets.compiler
Class JsfelcheckSAXCompiler

java.lang.Object
  extended by com.sun.facelets.compiler.Compiler
      extended by com.sun.facelets.compiler.JsfelcheckSAXCompiler

public final class JsfelcheckSAXCompiler
extends com.sun.facelets.compiler.Compiler

Copy of MyFaces SAXCompiler with slight adjustments, from MyFaces v1.2.10 The differences are: 1) it uses org.apache.myfaces.view.facelets.compiler.JsfelcheckCompilationManager/ NotifyingCompilationManager instead of the original CompilationManager, 2) It has a tagListener: PageNodeListener (shared w/ the C.M.) and uses it to notify about page entering.

Notice we must be in the myfaces package to be able to see package-private classes that the compiler and c. manager use.

Version:
Id: SAXCompiler.java,v 1.14 2008/07/13 19:01:33 rlubke Exp

Field Summary
 
Fields inherited from class com.sun.facelets.compiler.Compiler
EXPRESSION_FACTORY, log
 
Constructor Summary
JsfelcheckSAXCompiler(PageNodeListener tagListener)
           
 
Method Summary
 com.sun.facelets.FaceletHandler doCompile(URL src, String alias)
           
protected static String writeXmlDecl(InputStream is, com.sun.facelets.compiler.JsfelcheckCompilationManager mngr)
           
 
Methods inherited from class com.sun.facelets.compiler.Compiler
addTagDecorator, addTagLibrary, compile, createExpressionFactory, createTagDecorator, createTagLibrary, getFeature, isTrimmingComments, isTrimmingWhitespace, isValidating, setFeature, setTrimmingComments, setTrimmingWhitespace, setValidating
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsfelcheckSAXCompiler

public JsfelcheckSAXCompiler(PageNodeListener tagListener)
Method Detail

doCompile

public com.sun.facelets.FaceletHandler doCompile(URL src,
                                                 String alias)
                                          throws IOException,
                                                 com.sun.facelets.FaceletException,
                                                 javax.el.ELException,
                                                 javax.faces.FacesException
Specified by:
doCompile in class com.sun.facelets.compiler.Compiler
Throws:
IOException
com.sun.facelets.FaceletException
javax.el.ELException
javax.faces.FacesException

writeXmlDecl

protected static final String writeXmlDecl(InputStream is,
                                           com.sun.facelets.compiler.JsfelcheckCompilationManager mngr)
                                    throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.