|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface J2eeModule
Abstraction of J2EE module. Provides access to basic properties of the modules: J2EE version, module type, deployment descriptor.
Nested Class Summary | |
---|---|
static interface |
J2eeModule.RootedEntry
|
static interface |
J2eeModule.VersionListener
|
Field Summary | |
---|---|
static String |
APP_XML
|
static Object |
CLIENT
The module is an Client Application archive. |
static String |
CLIENT_XML
|
static Object |
CONN
The module is an Connector archive. |
static String |
CONNECTOR_XML
|
static Object |
EAR
The module is an EAR archive. |
static Object |
EJB
The module is an Enterprise Java Bean archive. |
static String |
EJBJAR_XML
|
static String |
EJBSERVICES_XML
|
static String |
J2EE_13
J2EE specification version 1.3 |
static String |
J2EE_14
J2EE specification version 1.4 |
static String |
J2EE_15
J2EE specification version 1.5 |
static String |
MIME_J2EE_MODULE_TARGET
MIME type for ContentDescriptor of build targets that have J2eeModule in lookup. |
static Object |
WAR
The module is an Web Application archive. |
static String |
WEB_XML
|
static String |
WEBSERVICES_XML
|
Method Summary | |
---|---|
void |
addVersionListener(J2eeModule.VersionListener listener)
Add module change listener. |
org.openide.filesystems.FileObject |
getArchive()
Returns the archive file for the module of null if the archive file does not exist (for example, has not been compiled yet). |
Iterator |
getArchiveContents()
Returns the contents of the archive, in copyable form. |
org.openide.filesystems.FileObject |
getContentDirectory()
This call is used in in-place deployment. |
org.netbeans.modules.schema2beans.BaseBean |
getDeploymentDescriptor(String location)
Returns a live bean representing the final deployment descriptor that will be used for deploment of the module. |
Object |
getModuleType()
Returns module type |
String |
getModuleVersion()
Returns module specification version |
String |
getUrl()
Returns the location of the module within the application archive. |
void |
removeVersionListener(J2eeModule.VersionListener listener)
Remove module version change listener. |
void |
setUrl(String url)
Sets the location of the modules within the application archive. |
Field Detail |
---|
static final String MIME_J2EE_MODULE_TARGET
static final Object EAR
static final Object WAR
static final Object EJB
static final Object CONN
static final Object CLIENT
static final String J2EE_13
static final String J2EE_14
static final String J2EE_15
static final String APP_XML
static final String WEB_XML
static final String WEBSERVICES_XML
static final String EJBJAR_XML
static final String EJBSERVICES_XML
static final String CONNECTOR_XML
static final String CLIENT_XML
Method Detail |
---|
String getModuleVersion()
Object getModuleType()
String getUrl()
void setUrl(String url)
org.openide.filesystems.FileObject getArchive() throws IOException
IOException
Iterator getArchiveContents() throws IOException
J2eeModule.RootedEntry
interface.
If the J2eeModule instance describes a
j2ee application, the result should not contain module archives.
J2eeModule.RootedEntry
s
IOException
org.openide.filesystems.FileObject getContentDirectory() throws IOException
getArchiveContents()
came from.
IOException
org.netbeans.modules.schema2beans.BaseBean getDeploymentDescriptor(String location)
location
- Parameterized by location because of possibility of multiple
deployment descriptors for a single module (jsp.xml, webservices.xml, etc).
Location must be prefixed by /META-INF or /WEB-INF as appropriate.
void addVersionListener(J2eeModule.VersionListener listener)
listener
- on version changevoid removeVersionListener(J2eeModule.VersionListener listener)
listener
- on version change
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |