public abstract class RootDeploymentDescriptor extends Descriptor
Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
classLoader
class loader associated to this module to load classes
contained in the archive file
|
static Logger |
deplLogger |
protected Map<Class<? extends RootDeploymentDescriptor>,List<RootDeploymentDescriptor>> |
extensions
Extensions for this module descriptor, keyed by type, indexed using the instance's index
|
protected ModuleDescriptor |
moduleDescriptor
contains the information for this module (like it's module name)
|
protected String |
moduleID
each module is uniquely identified with a moduleID
|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
Constructor and Description |
---|
RootDeploymentDescriptor()
Construct a new RootDeploymentDescriptor
|
RootDeploymentDescriptor(String name,
String description)
Construct a new RootDeploymentDescriptor with a name and description
|
Modifier and Type | Method and Description |
---|---|
<T extends RootDeploymentDescriptor> |
addExtensionDescriptor(Class<? extends RootDeploymentDescriptor> type,
T instance,
String index) |
abstract ClassLoader |
getClassLoader() |
abstract String |
getDefaultSpecVersion() |
String |
getDisplayName() |
Collection<RootDeploymentDescriptor> |
getExtensionsDescriptors()
This method returns all the extensions deployment descriptors in the scope
|
<T extends RootDeploymentDescriptor> |
getExtensionsDescriptors(Class<? extends RootDeploymentDescriptor> type,
String index)
This method returns one extension of the passed type in the scope with the right index
|
<T extends RootDeploymentDescriptor> |
getExtensionsDescriptors(Class<T> type)
This method returns all extensions of the passed type in the scope
|
RootDeploymentDescriptor |
getMainDescriptor() |
ModuleDescriptor |
getModuleDescriptor() |
abstract String |
getModuleID() |
abstract ArchiveType |
getModuleType() |
String |
getName()
as of J2EE1.4, get/setName are deprecated,
people should use the set/getDisplayName or
the set/getModuleID.
|
String |
getSchemaLocation() |
String |
getSpecVersion() |
DescriptorVisitor |
getTracerVisitor() |
abstract boolean |
isApplication() |
abstract boolean |
isEmpty()
Return true if this root deployment descriptor does not describe anything
|
boolean |
isExtensionDescriptor() |
void |
print(StringBuilder toStringBuilder)
print a meaningful string for this object
|
void |
setClassLoader(ClassLoader classLoader)
Sets the class loader for this application
|
void |
setDisplayName(String name)
sets the display name for this bundle
|
void |
setModuleDescriptor(ModuleDescriptor descriptor)
Sets the module descriptor for this bundle
|
void |
setModuleID(String moduleID)
each module is uniquely identified with a moduleID
|
void |
setName(String name)
as of J2EE1.4, get/setName are deprecated,
people should use the set/getDisplayName or
the set/getModuleID.
|
void |
setSchemaLocation(String schemaLocation) |
void |
setSpecVersion(String specVersion)
Sets the specification version of the deployment descriptor
|
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setSmallIconUri, visit
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final Logger deplLogger
protected String moduleID
protected transient ClassLoader classLoader
protected Map<Class<? extends RootDeploymentDescriptor>,List<RootDeploymentDescriptor>> extensions
protected ModuleDescriptor moduleDescriptor
public RootDeploymentDescriptor()
public void setModuleID(String moduleID)
moduleID
- for this modulepublic abstract String getModuleID()
public abstract String getDefaultSpecVersion()
public abstract boolean isEmpty()
public String getSpecVersion()
public void setSpecVersion(String specVersion)
specVersion
- version numberpublic abstract ArchiveType getModuleType()
public DescriptorVisitor getTracerVisitor()
public void setClassLoader(ClassLoader classLoader)
public abstract ClassLoader getClassLoader()
public void setDisplayName(String name)
setDisplayName
in class Descriptor
name
- the display namepublic String getDisplayName()
getDisplayName
in class Descriptor
public void setName(String name)
setName
in class Descriptor
name
- the new name of the descriptor.public String getName()
getName
in class Descriptor
public void setSchemaLocation(String schemaLocation)
public String getSchemaLocation()
public ModuleDescriptor getModuleDescriptor()
public void setModuleDescriptor(ModuleDescriptor descriptor)
descriptor
- for the modulepublic abstract boolean isApplication()
public void print(StringBuilder toStringBuilder)
print
in class Descriptor
public Collection<RootDeploymentDescriptor> getExtensionsDescriptors()
public <T extends RootDeploymentDescriptor> Collection<T> getExtensionsDescriptors(Class<T> type)
type
- requested extension typepublic <T extends RootDeploymentDescriptor> T getExtensionsDescriptors(Class<? extends RootDeploymentDescriptor> type, String index)
type
- requested extension typeindex
- is the instance indexpublic <T extends RootDeploymentDescriptor> void addExtensionDescriptor(Class<? extends RootDeploymentDescriptor> type, T instance, String index)
public boolean isExtensionDescriptor()
public RootDeploymentDescriptor getMainDescriptor()
Copyright © 2020. All rights reserved.