Fields Summary |
---|
private javax.enterprise.deploy.shared.ModuleType | typetype of the module, currently EJB, WEB... |
private String | pathpath for the module bundle |
private String | altDDalternate descriptor (if any) path |
private String | contextRootcontext-root if dealing with a web module |
private com.sun.enterprise.deployment.BundleDescriptor | descriptorloaded deployment descriptor for this module |
private transient Manifest | manifestmanifest information for this module |
private boolean | standaloneis it a standalone module, or part of a J2EE Application |
Methods Summary |
---|
public void | addWebDeploymentExtension(com.sun.enterprise.deployment.DeploymentExtensionDescriptor de)Add a new deployment-extension for this descriptor
Vector extensions = (Vector) getExtraAttribute("web-deployment-extension");
if (extensions==null) {
extensions = new Vector();
addExtraAttribute("web-deployment-extension", extensions);
}
extensions.add(de);
|
public java.lang.String | getAlternateDescriptor()
return altDD;
|
public java.lang.String | getArchiveUri()
return path;
|
public java.lang.String | getContextRoot()
return contextRoot;
|
public com.sun.enterprise.deployment.BundleDescriptor | getDescriptor()
return descriptor;
|
public java.util.jar.Manifest | getManifest()
return manifest;
|
public javax.enterprise.deploy.shared.ModuleType | getModuleType()
if (descriptor!=null) {
return descriptor.getModuleType();
}
return type;
|
public java.util.Iterator | getWebDeploymentExtensions()
Vector extensions = (Vector) getExtraAttribute("web-deployment-extension");
if (extensions!=null) {
return extensions.iterator();
}
return null;
|
public boolean | isStandalone()
return standalone;
|
public void | print(java.lang.StringBuffer toStringBuffer)
toStringBuffer.append(type + " ModuleDescriptor: [ " + path + " ] , altDD = " + altDD);
if (contextRoot!=null) {
toStringBuffer.append(" , ContextRoot = " + contextRoot);
}
|
private void | readObject(java.io.ObjectInputStream in)
// just read this intance fields...
path = (String) in.readObject();
altDD = (String) in.readObject();
contextRoot = (String) in.readObject();
descriptor = (BundleDescriptor) in.readObject();
standalone = in.readBoolean();
|
public void | setAlternateDescriptor(java.lang.String altDD)Sets the path to the alternate deployment descriptors
in the application archive
this.altDD = altDD;
|
public void | setArchiveUri(java.lang.String path)Sets the archive uri as defined in the application xml
or the full archive path for standalone modules
this.path = path;
|
public void | setContextRoot(java.lang.String contextRoot)Sets the context root for Web module
this.contextRoot = contextRoot;
|
public void | setDescriptor(com.sun.enterprise.deployment.BundleDescriptor descriptor)Sets the @see BundleDescriptor descriptor for this
module
descriptor.setModuleDescriptor(this);
this.descriptor = descriptor;
|
public void | setManifest(java.util.jar.Manifest m)Sets the @see Manifest manifest information for this
module
manifest = m;
|
public void | setModuleType(javax.enterprise.deploy.shared.ModuleType type)
this.type = type;
|
public void | setStandalone(boolean standalone)Sets the standalone flag
this.standalone = standalone;
|
private void | writeObject(java.io.ObjectOutputStream out)Implementation of the serializable interface since ModuleType is not
serializable
// just write this intance fields...
out.writeObject(path);
out.writeObject(altDD);
out.writeObject(contextRoot);
out.writeObject(descriptor);
out.writeBoolean(standalone);
|