1 19 20 package org.netbeans.modules.j2ee.deployment.devmodules.api; 21 22 import org.netbeans.modules.schema2beans.BaseBean; 23 import javax.enterprise.deploy.shared.ModuleType ; 24 import org.openide.filesystems.FileObject; 25 import java.util.Iterator ; 26 27 32 public interface J2eeModule { 33 34 38 public static final String MIME_J2EE_MODULE_TARGET = "MIME-org-nb-j2eeserver-J2eeModule-BuildTarget"; 40 41 public static final Object EAR = ModuleType.EAR; 42 43 public static final Object WAR = ModuleType.WAR; 44 45 public static final Object EJB = ModuleType.EJB; 46 47 public static final Object CONN = ModuleType.RAR; 48 49 public static final Object CLIENT = ModuleType.CAR; 50 51 55 public static final String J2EE_13 = "1.3"; 60 public static final String J2EE_14 = "1.4"; 67 public static final String JAVA_EE_5 = "1.5"; 69 public static final String APP_XML = "META-INF/application.xml"; 70 public static final String WEB_XML = "WEB-INF/web.xml"; 71 public static final String WEBSERVICES_XML = "WEB-INF/webservices.xml"; 72 public static final String EJBJAR_XML = "META-INF/ejb-jar.xml"; 73 public static final String EJBSERVICES_XML = "META-INF/webservices.xml"; 74 public static final String CONNECTOR_XML = "META-INF/ra.xml"; 75 public static final String CLIENT_XML = "META-INF/application-client.xml"; 76 77 78 public String getModuleVersion(); 79 80 81 public Object getModuleType(); 82 83 84 public abstract String getUrl (); 85 86 91 public void setUrl (String url); 92 93 96 public FileObject getArchive () throws java.io.IOException ; 97 98 105 public Iterator getArchiveContents() throws java.io.IOException ; 106 107 114 public FileObject getContentDirectory() throws java.io.IOException ; 115 116 126 public BaseBean getDeploymentDescriptor(String location); 127 128 public interface RootedEntry { 129 FileObject getFileObject (); 130 String getRelativePath (); 131 } 132 133 136 public void addVersionListener(VersionListener listener); 137 138 141 public void removeVersionListener(VersionListener listener); 142 143 public interface VersionListener { 144 void versionChanged(String oldVersion, String newVersion); 145 } 146 } 147 | Popular Tags |