1 18 package org.apache.beehive.netui.compiler.genmodel; 19 20 import org.apache.beehive.netui.compiler.typesystem.declaration.ClassDeclaration; 21 import org.apache.beehive.netui.compiler.typesystem.env.AnnotationProcessorEnvironment; 22 import org.apache.beehive.netui.compiler.FlowControllerInfo; 23 import org.apache.beehive.netui.compiler.JpfLanguageConstants; 24 import org.apache.beehive.netui.compiler.Diagnostics; 25 import org.apache.beehive.netui.compiler.FatalCompileTimeException; 26 import org.apache.xmlbeans.XmlException; 27 28 import java.io.File ; 29 import java.io.IOException ; 30 31 32 public class GenSharedFlowStrutsApp 33 extends GenStrutsApp 34 implements JpfLanguageConstants 35 { 36 private boolean _isGlobalApp; 37 38 39 public GenSharedFlowStrutsApp( File sourceFile, ClassDeclaration jclass, AnnotationProcessorEnvironment env, 40 FlowControllerInfo fcInfo, boolean checkOnly, Diagnostics diagnostics ) 41 throws XmlException, IOException , FatalCompileTimeException 42 { 43 super( sourceFile, jclass, env, fcInfo, checkOnly, diagnostics ); 44 _isGlobalApp = GLOBALAPP_PACKAGE.equals( jclass.getPackage().getQualifiedName() ) 45 && sourceFile.getName().startsWith( GLOBALAPP_CLASSNAME ); 46 recalculateStrutsConfigFile(); setSharedFlow( true ); 48 } 49 50 protected boolean isModuleDeclaredInWebXml() 51 { 52 return _isGlobalApp; 53 } 54 55 String getStrutsConfigURI() 56 { 57 return getStrutsConfigURI( getContainingPackage(), true ); 58 } 59 } 60 | Popular Tags |