
public interface EjbJarDescriptor extends Descriptor, DescriptorNamespace<EjbJarDescriptor>, EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
This deployment descriptor provides the functionalities as described in the specification
Example:
EjbJarDescriptor descriptor = Descriptors.create(EjbJarDescriptor.class);
| Modifier and Type | Method and Description |
|---|---|
IconType<EjbJarDescriptor> |
createIcon()
Creates a new
icon element |
EjbJarDescriptor |
description(String... values)
Creates for all String objects representing
description elements,
a new description element |
EjbJarDescriptor |
displayName(String... values)
Creates for all String objects representing
display-name elements,
a new display-name element |
EjbJarDescriptor |
ejbClientJar(String ejbClientJar)
Sets the
ejb-client-jar element |
List<String> |
getAllDescription()
Returns all
description elements |
List<String> |
getAllDisplayName()
Returns all
display-name elements |
List<IconType<EjbJarDescriptor>> |
getAllIcon()
Returns all
icon elements |
String |
getEjbClientJar()
Returns the
ejb-client-jar element |
String |
getId()
Returns the
id attribute |
String |
getModuleName()
Returns the
module-name element |
AssemblyDescriptorType<EjbJarDescriptor> |
getOrCreateAssemblyDescriptor()
If not already created, a new
assembly-descriptor element with the given value will be created. |
EnterpriseBeansType<EjbJarDescriptor> |
getOrCreateEnterpriseBeans()
If not already created, a new
enterprise-beans element with the given value will be created. |
IconType<EjbJarDescriptor> |
getOrCreateIcon()
If not already created, a new
icon element will be created and returned. |
InterceptorsType<EjbJarDescriptor> |
getOrCreateInterceptors()
If not already created, a new
interceptors element with the given value will be created. |
RelationshipsType<EjbJarDescriptor> |
getOrCreateRelationships()
If not already created, a new
relationships element with the given value will be created. |
String |
getVersion()
Returns the
version attribute |
EjbJarDescriptor |
id(String id)
Sets the
id attribute |
Boolean |
isMetadataComplete()
Returns the
metadata-complete attribute |
EjbJarDescriptor |
metadataComplete(Boolean metadataComplete)
Sets the
metadata-complete attribute |
EjbJarDescriptor |
moduleName(String moduleName)
Sets the
module-name element |
EjbJarDescriptor |
removeAllDescription()
Removes the
description element |
EjbJarDescriptor |
removeAllDisplayName()
Removes the
display-name element |
EjbJarDescriptor |
removeAllIcon()
Removes all
icon elements |
EjbJarDescriptor |
removeAssemblyDescriptor()
Removes the
assembly-descriptor element |
EjbJarDescriptor |
removeEjbClientJar()
Removes the
ejb-client-jar element |
EjbJarDescriptor |
removeEnterpriseBeans()
Removes the
enterprise-beans element |
EjbJarDescriptor |
removeId()
Removes the
id attribute |
EjbJarDescriptor |
removeInterceptors()
Removes the
interceptors element |
EjbJarDescriptor |
removeMetadataComplete()
Removes the
metadata-complete attribute |
EjbJarDescriptor |
removeModuleName()
Removes the
module-name element |
EjbJarDescriptor |
removeRelationships()
Removes the
relationships element |
EjbJarDescriptor |
removeVersion()
Removes the
version attribute |
EjbJarDescriptor |
version(String version)
Sets the
version attribute |
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespacesexportAsString, exportTo, getDescriptorNamestatic final String VERSION
EjbJarDescriptor description(String... values)
description elements,
a new description elementvalues - list of description objectsEjbJarDescriptorList<String> getAllDescription()
description elementsdescriptionEjbJarDescriptor removeAllDescription()
description elementEjbJarDescriptorEjbJarDescriptor displayName(String... values)
display-name elements,
a new display-name elementvalues - list of display-name objectsEjbJarDescriptorList<String> getAllDisplayName()
display-name elementsdisplay-nameEjbJarDescriptor removeAllDisplayName()
display-name elementEjbJarDescriptorIconType<EjbJarDescriptor> getOrCreateIcon()
icon element will be created and returned.
Otherwise, the first existing icon element will be returned.iconIconType<EjbJarDescriptor> createIcon()
icon elementIconTypeList<IconType<EjbJarDescriptor>> getAllIcon()
icon elementsiconEjbJarDescriptor removeAllIcon()
icon elementsIconTypeEjbJarDescriptor moduleName(String moduleName)
module-name elementmoduleName - the value for the element module-nameEjbJarDescriptorString getModuleName()
module-name elementmodule-nameEjbJarDescriptor removeModuleName()
module-name elementEjbJarDescriptorEnterpriseBeansType<EjbJarDescriptor> getOrCreateEnterpriseBeans()
enterprise-beans element with the given value will be created.
Otherwise, the existing enterprise-beans element will be returned.EnterpriseBeansTypeEjbJarDescriptor removeEnterpriseBeans()
enterprise-beans elementEjbJarDescriptorInterceptorsType<EjbJarDescriptor> getOrCreateInterceptors()
interceptors element with the given value will be created.
Otherwise, the existing interceptors element will be returned.InterceptorsTypeEjbJarDescriptor removeInterceptors()
interceptors elementEjbJarDescriptorRelationshipsType<EjbJarDescriptor> getOrCreateRelationships()
relationships element with the given value will be created.
Otherwise, the existing relationships element will be returned.RelationshipsTypeEjbJarDescriptor removeRelationships()
relationships elementEjbJarDescriptorAssemblyDescriptorType<EjbJarDescriptor> getOrCreateAssemblyDescriptor()
assembly-descriptor element with the given value will be created.
Otherwise, the existing assembly-descriptor element will be returned.AssemblyDescriptorTypeEjbJarDescriptor removeAssemblyDescriptor()
assembly-descriptor elementEjbJarDescriptorEjbJarDescriptor ejbClientJar(String ejbClientJar)
ejb-client-jar elementejbClientJar - the value for the element ejb-client-jarEjbJarDescriptorString getEjbClientJar()
ejb-client-jar elementejb-client-jarEjbJarDescriptor removeEjbClientJar()
ejb-client-jar elementEjbJarDescriptorEjbJarDescriptor version(String version)
version attributeversion in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>version - the value for the attribute versionEjbJarDescriptorString getVersion()
version attributegetVersion in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>versionEjbJarDescriptor removeVersion()
version attributeremoveVersion in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>EjbJarDescriptorEjbJarDescriptor metadataComplete(Boolean metadataComplete)
metadata-complete attributemetadataComplete in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>metadataComplete - the value for the attribute metadata-completeEjbJarDescriptorBoolean isMetadataComplete()
metadata-complete attributeisMetadataComplete in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>metadata-completeEjbJarDescriptor removeMetadataComplete()
metadata-complete attributeremoveMetadataComplete in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>EjbJarDescriptorEjbJarDescriptor id(String id)
id attributeid in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>id - the value for the attribute idEjbJarDescriptorString getId()
id attributegetId in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>idEjbJarDescriptor removeId()
id attributeremoveId in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>EjbJarDescriptorCopyright © 2025 JBoss by Red Hat. All rights reserved.