public interface J2eeModuleBase
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
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<J2eeModule.RootedEntry> |
getArchiveContents()
Returns the contents of the archive, in copyable form.
|
FileObject |
getContentDirectory()
This call is used in in-place deployment.
|
File |
getDeploymentConfigurationFile(String name)
Returns source deployment configuration file path for the given deployment
configuration file name.
|
<T> MetadataModel<T> |
getMetadataModel(Class<T> type)
Returns a metadata model of a deployment descriptor specified by the
type parameter. |
String |
getModuleVersion()
Returns a Java EE module specification version, version of a web application
for example.
|
File |
getResourceDirectory()
Returns the module resource directory, or null if the module has no resource
directory.
|
String |
getUrl()
Returns the location of the module within the application archive.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
@NonNull String getModuleVersion()
Do not confuse with the Java EE platform specification version.
String getUrl()
IncrementalDeployment.getModuleUrl(javax.enterprise.deploy.spi.TargetModuleID)
.FileObject getArchive() throws IOException
IOException
Iterator<J2eeModule.RootedEntry> getArchiveContents() throws IOException
J2eeModule.RootedEntry
interface. If the J2eeModule instance describes a j2ee application,
the result should not contain module archives.IOException
FileObject getContentDirectory() throws IOException
J2eeModuleBase.getArchiveContents()
came from.IOException
<T> MetadataModel<T> getMetadataModel(Class<T> type)
type
parameter.
As an example, passing org.netbeans.modules.j2ee.dd.api.web.WebAppMetadata.class
as a type parameter will return a metadata model of the web module deployment
descriptor - web.xml.
type
- metadata model type class for which a MetadataModel
instance will be returned.type
parameter.File getResourceDirectory()
File getDeploymentConfigurationFile(String name)
name
- file name of the deployment configuration file, WEB-INF/sun-web.xml
for example.void addPropertyChangeListener(PropertyChangeListener listener)
listener
- PropertyChangeListenervoid removePropertyChangeListener(PropertyChangeListener listener)
listener
- PropertyChangeListener