|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.glassfish.deployment.common.DynamicAttributesDescriptor
org.glassfish.deployment.common.Descriptor
org.glassfish.deployment.common.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 ClassLoader |
classLoader
class loader associated to this module to load classes contained in the archive file |
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 |
| Fields inherited from class org.glassfish.deployment.common.Descriptor |
|---|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED |
| Constructor Summary | |
|---|---|
RootDeploymentDescriptor()
Construct a new RootDeploymentDescriptor |
|
RootDeploymentDescriptor(String name,
String description)
Construct a new RootDeploymentDescriptor with a name and description |
|
| Method Summary | ||
|---|---|---|
|
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 |
|
|
getExtensionsDescriptors(Class<? extends RootDeploymentDescriptor> type,
String index)
This method returns one extension of the passed type in the scope with the right index |
|
|
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()
|
|
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(StringBuffer toStringBuffer)
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 |
setFullAttribute(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(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 |
|
| Methods inherited from class org.glassfish.deployment.common.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 String moduleID
protected transient ClassLoader classLoader
protected Map<Class<? extends RootDeploymentDescriptor>,List<RootDeploymentDescriptor>> extensions
protected ModuleDescriptor moduleDescriptor
| Constructor Detail |
|---|
public RootDeploymentDescriptor()
public RootDeploymentDescriptor(String name,
String description)
| Method Detail |
|---|
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 Descriptorname - the display namepublic String getDisplayName()
getDisplayName in class Descriptorpublic void setName(String name)
setName in class Descriptorname - the new name of the descriptor.public String getName()
getName in class Descriptorpublic 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(StringBuffer toStringBuffer)
print in class Descriptorpublic Collection<RootDeploymentDescriptor> getExtensionsDescriptors()
public <T extends RootDeploymentDescriptor> Collection<T> getExtensionsDescriptors(Class<T> type)
type - requested extension type
public <T extends RootDeploymentDescriptor> T getExtensionsDescriptors(Class<? extends RootDeploymentDescriptor> type,
String index)
type - requested extension typeindex - is the instance index
public <T extends RootDeploymentDescriptor> void addExtensionDescriptor(Class<? extends RootDeploymentDescriptor> type,
T instance,
String index)
public boolean isExtensionDescriptor()
public RootDeploymentDescriptor getMainDescriptor()
public void setFullFlag(boolean flag)
flag - a boolean to set or unset the flagpublic void setFullAttribute(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 | |||||||||