|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.generator.GeneratorCommon
org.sandev.generator.WebShellGeneratorBase
org.sandev.generator.WebAppShellGenerator
Create the webapp shell servlet that bridges to the SandUIAdaptor implementation. Specifically, this generator creates (as needed)
The webapp directory is not removed on cleanup since it usually will contain things like transformation templates and other custom info. The link images are also left alone, since they are usually customized. The dedicated sandui directory and the copy of the SandUI XML file is removed. The shell source is cleaned up, but not the associated directory structure since there may be other custom webapp source. The WEB-INF directory and the web.xml file are removed since they need to match the servlet source.
| Field Summary |
| Fields inherited from class org.sandev.generator.GeneratorCommon |
CONTEXT_CONFIGURATION, CONTEXT_CONTROL, CONTEXT_FRAMEWORK, CONTEXT_MESSAGING, CONTEXT_PERSISTENCE, CONTEXT_UI, DEFAULT_LINE_LENGTH, MESSAGE_INTERFACES |
| Constructor Summary | |
WebAppShellGenerator()
|
|
| Method Summary | |
void |
cleanup(org.sandev.sandbuild.SandDecl[] decls,
java.io.File baseDir,
boolean changed,
java.lang.String extra)
SandGenerator interface implementation, see the class comments for details on what this does. |
void |
generate(org.sandev.sandbuild.SandDecl[] decls,
java.io.File baseDir,
boolean changed,
java.util.Collection dirtyFiles,
java.lang.String extra)
SandGenerator interface implementation, see the class comments for details on what this does. |
protected org.sandev.sandbuild.SandUIDeployment |
getWebappDeployment(org.sandev.sandbuild.SandProject proj)
Return the webapp SandUIDeployment or null if not found. |
protected void |
removeSandUIDirAndFile(java.io.File projDir)
Remove the sandui directory and the SandUI XML file that was copied into it. |
protected void |
verifyLinkImages(java.io.File projDir)
Verify that the images subdirectory off the webapp dir exists, and that it contains the link images needed for form navigation. |
protected void |
verifySandUIDirAndFile(java.io.File projDir)
Make sure the sandui directory exists and copy the SandUI XML file into it. |
| Methods inherited from class org.sandev.generator.WebShellGeneratorBase |
buildFileChanged, removeWebInf, removeWebShellSrc, verifySubProjectDir, verifyWebInf, verifyWebShellSrc |
| Methods inherited from class org.sandev.generator.GeneratorCommon |
capitalize, copyfile, deletefile, filterHTMLLine, getDeclaredFields, getFields, getInheritanceHierarchy, getLastAppProject, getLastUtilDir, getLongInstanceName, getPrintStream, getSandProject, getShortInstanceName, getUtilPackage, getVisibleFields, isBasic, isLongReferenceArray, isMessageInterface, isParentAbstract, isPrimitive, isRootStruct, isVowel, log, nextToken, pluralize, rangeEscape, removePlatformDecls, trackFileDelete, trackFileWrite, uncapitalize, writeDefaultCtor, writeDescription, writeHTMLContents, writeMessageImports, writeSectionName, writeStandardCommentID, writeXHTMLFooter, writeXHTMLFooter, writeXHTMLHeader, writeXHTMLHeader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebAppShellGenerator()
| Method Detail |
public void generate(org.sandev.sandbuild.SandDecl[] decls,
java.io.File baseDir,
boolean changed,
java.util.Collection dirtyFiles,
java.lang.String extra)
throws org.sandev.sandbuild.SandGeneratorException
generate in interface org.sandev.sandbuild.SandGeneratororg.sandev.sandbuild.SandGeneratorException
public void cleanup(org.sandev.sandbuild.SandDecl[] decls,
java.io.File baseDir,
boolean changed,
java.lang.String extra)
throws org.sandev.sandbuild.SandGeneratorException
cleanup in interface org.sandev.sandbuild.SandGeneratororg.sandev.sandbuild.SandGeneratorException
protected org.sandev.sandbuild.SandUIDeployment getWebappDeployment(org.sandev.sandbuild.SandProject proj)
throws org.sandev.sandbuild.SandGeneratorException
org.sandev.sandbuild.SandGeneratorException
protected void verifyLinkImages(java.io.File projDir)
throws org.sandev.sandbuild.SandGeneratorException
org.sandev.sandbuild.SandGeneratorException
protected void verifySandUIDirAndFile(java.io.File projDir)
throws org.sandev.sandbuild.SandGeneratorException
org.sandev.sandbuild.SandGeneratorException
protected void removeSandUIDirAndFile(java.io.File projDir)
throws org.sandev.sandbuild.SandGeneratorException
org.sandev.sandbuild.SandGeneratorException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||