|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--submarine.pages.WSPCompilerLoader
class that will pilot the compilation and load of the auto build class
Inner Class Summary | |
private class |
WSPCompilerLoader.ErrorListener
This internal class handles errors for the XSL transformation |
private class |
WSPCompilerLoader.LocalUriResolver
|
Field Summary | |
protected java.io.ByteArrayOutputStream |
baos_messages
|
int |
counter
|
SimpleClassLoader |
instantClassLoader
|
private java.lang.String |
javaEncoding
|
java.lang.String |
javaFileName
|
protected java.io.PrintStream |
out
|
java.lang.String |
page
|
java.lang.String |
pagesPath
|
static boolean |
reloadXSL
|
private javax.xml.transform.Templates |
templatePageToJava
The internal template for xsl compilation. |
java.lang.Class |
theClass
|
java.lang.String |
workPath
|
java.lang.String |
wsp_id
|
java.lang.String |
xslPageToJava
|
Constructor Summary | |
WSPCompilerLoader(java.lang.String path,
java.lang.String page)
|
|
WSPCompilerLoader(java.lang.String workPath,
java.lang.String wspId,
java.lang.String xslCompiler,
java.lang.String path,
java.lang.String page)
|
Method Summary | |
private boolean |
compileJava()
compile the generated file to class file |
private boolean |
compileXSL()
compile the page using XSL styleSheet Then compile the java file to class |
java.lang.String |
getErrorMessages()
|
private int |
getLastExistingCounter()
returns the last index used by the java files generated |
private boolean |
hasLoadedClass()
Test whether we need to load the class file in the classLoader |
private boolean |
loadClass()
replace the class loader by a new one in order to free the previously loaded class |
private javax.xml.transform.Templates |
loadXSL()
Load the StyleSheet from the classes resources |
private boolean |
shouldCompile()
returns true if the files say it should be rebuild |
boolean |
update()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
public java.lang.String workPath
public java.lang.String wsp_id
public java.lang.String xslPageToJava
public static final boolean reloadXSL
public java.lang.String pagesPath
public java.lang.String page
public java.lang.String javaFileName
public java.lang.Class theClass
public SimpleClassLoader instantClassLoader
public int counter
private java.lang.String javaEncoding
protected java.io.ByteArrayOutputStream baos_messages
protected java.io.PrintStream out
private javax.xml.transform.Templates templatePageToJava
Constructor Detail |
public WSPCompilerLoader(java.lang.String workPath, java.lang.String wspId, java.lang.String xslCompiler, java.lang.String path, java.lang.String page)
public WSPCompilerLoader(java.lang.String path, java.lang.String page)
Method Detail |
public java.lang.String getErrorMessages()
private int getLastExistingCounter()
private boolean shouldCompile() throws java.io.FileNotFoundException
private javax.xml.transform.Templates loadXSL() throws java.lang.Exception
private boolean compileXSL() throws java.lang.Exception
private boolean compileJava() throws java.lang.Exception
private boolean hasLoadedClass()
private boolean loadClass() throws java.lang.Exception
public boolean update() throws java.lang.Exception
|
Submarine project. free distribution of this software must include the opensource licence. Guénolé de Cadoudal. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |