|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
com.sun.enterprise.deployment.RootDeploymentDescriptor
public abstract class RootDeploymentDescriptor
This descriptor contains all common information amongst root element of the J2EE Deployment Descriptors (application, ejb-jar, web-app, connector...).
| Field Summary | |
|---|---|
protected java.lang.ClassLoader |
classLoader
class loader associated to this module to load classes contained in the archive file |
protected java.util.Map<java.lang.Class<? extends RootDeploymentDescriptor>,java.util.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 java.lang.String |
moduleID
each module is uniquely identified with a moduleID |
| Fields inherited from class com.sun.enterprise.deployment.Descriptor |
|---|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED |
| Constructor Summary | |
|---|---|
RootDeploymentDescriptor()
Construct a new RootDeploymentDescriptor |
|
RootDeploymentDescriptor(java.lang.String name,
java.lang.String description)
Construct a new RootDeploymentDescriptor with a name and description |
|
| Method Summary | ||
|---|---|---|
|
addExtensionDescriptor(java.lang.Class<? extends RootDeploymentDescriptor> type,
T instance,
java.lang.String index)
|
|
abstract java.lang.ClassLoader |
getClassLoader()
|
|
abstract java.lang.String |
getDefaultSpecVersion()
|
|
java.lang.String |
getDisplayName()
|
|
java.util.Collection<RootDeploymentDescriptor> |
getExtensionsDescriptors()
This method returns all the extensions deployment descriptors in the scope |
|
|
getExtensionsDescriptors(java.lang.Class<? extends RootDeploymentDescriptor> type,
java.lang.String index)
This method returns one extension of the passed type in the scope with the right index |
|
|
getExtensionsDescriptors(java.lang.Class<T> type)
This method returns all extensions of the passed type in the scope |
|
RootDeploymentDescriptor |
getMainDescriptor()
|
|
ModuleDescriptor |
getModuleDescriptor()
|
|
abstract java.lang.String |
getModuleID()
|
|
abstract XModuleType |
getModuleType()
|
|
java.lang.String |
getName()
as of J2EE1.4, get/setName are deprecated, people should use the set/getDisplayName or the set/getModuleID. |
|
java.lang.String |
getSchemaLocation()
|
|
java.lang.String |
getSpecVersion()
|
|
abstract boolean |
isApplication()
|
|
boolean |
isDDWithNoAnnotationAllowed()
|
|
abstract boolean |
isEmpty()
Return true if this root deployment descriptor does not describe anything |
|
boolean |
isExtensionDescriptor()
|
|
boolean |
isFullAttribute()
Get the full attribute of the deployment descriptor |
|
boolean |
isFullFlag()
|
|
void |
print(java.lang.StringBuffer toStringBuffer)
print a meaningful string for this object |
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the class loader for this application |
|
void |
setDisplayName(java.lang.String name)
sets the display name for this bundle |
|
void |
setFullAttribute(java.lang.String value)
Sets the full attribute of the deployment descriptor |
|
void |
setFullFlag(boolean flag)
Sets the full flag of the bundle descriptor. |
|
void |
setModuleDescriptor(ModuleDescriptor descriptor)
Sets the module descriptor for this bundle |
|
void |
setModuleID(java.lang.String moduleID)
each module is uniquely identified with a moduleID |
|
void |
setName(java.lang.String name)
as of J2EE1.4, get/setName are deprecated, people should use the set/getDisplayName or the set/getModuleID. |
|
void |
setSchemaLocation(java.lang.String schemaLocation)
|
|
void |
setSpecVersion(java.lang.String specVersion)
Sets the specification version of the deployment descriptor |
|
| Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor |
|---|
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String moduleID
protected transient java.lang.ClassLoader classLoader
protected java.util.Map<java.lang.Class<? extends RootDeploymentDescriptor>,java.util.List<RootDeploymentDescriptor>> extensions
protected ModuleDescriptor moduleDescriptor
| Constructor Detail |
|---|
public RootDeploymentDescriptor()
public RootDeploymentDescriptor(java.lang.String name,
java.lang.String description)
| Method Detail |
|---|
public void setModuleID(java.lang.String moduleID)
moduleID - for this modulepublic abstract java.lang.String getModuleID()
public abstract java.lang.String getDefaultSpecVersion()
public abstract boolean isEmpty()
public java.lang.String getSpecVersion()
public void setSpecVersion(java.lang.String specVersion)
specVersion - version numberpublic abstract XModuleType getModuleType()
public void setClassLoader(java.lang.ClassLoader classLoader)
public abstract java.lang.ClassLoader getClassLoader()
public void setDisplayName(java.lang.String name)
setDisplayName in class Descriptorname - the display namepublic java.lang.String getDisplayName()
getDisplayName in class Descriptorpublic void setName(java.lang.String name)
setName in class Descriptorname - the new name of the descriptor.public java.lang.String getName()
getName in class Descriptorpublic void setSchemaLocation(java.lang.String schemaLocation)
public java.lang.String getSchemaLocation()
public ModuleDescriptor getModuleDescriptor()
public void setModuleDescriptor(ModuleDescriptor descriptor)
descriptor - for the modulepublic abstract boolean isApplication()
public void print(java.lang.StringBuffer toStringBuffer)
print in class Descriptorpublic java.util.Collection<RootDeploymentDescriptor> getExtensionsDescriptors()
public <T extends RootDeploymentDescriptor> java.util.Collection<T> getExtensionsDescriptors(java.lang.Class<T> type)
type - requested extension type
public <T extends RootDeploymentDescriptor> T getExtensionsDescriptors(java.lang.Class<? extends RootDeploymentDescriptor> type,
java.lang.String index)
type - requested extension typeindex - is the instance index
public <T extends RootDeploymentDescriptor> void addExtensionDescriptor(java.lang.Class<? extends RootDeploymentDescriptor> type,
T instance,
java.lang.String index)
public boolean isExtensionDescriptor()
public RootDeploymentDescriptor getMainDescriptor()
public void setFullFlag(boolean flag)
flag - a boolean to set or unset the flagpublic void setFullAttribute(java.lang.String value)
value - the full attributepublic boolean isFullAttribute()
public boolean isFullFlag()
public boolean isDDWithNoAnnotationAllowed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||