public interface ApplicationDescriptor extends Descriptor, DescriptorNamespace<ApplicationDescriptor>, ApplicationCommonDescriptor<ApplicationDescriptor,ModuleType<ApplicationDescriptor>,SecurityRoleType<ApplicationDescriptor>>
This deployment descriptor provides the functionalities as described in the specification
Example:
ApplicationDescriptor descriptor = Descriptors.create(ApplicationDescriptor.class);
Modifier and Type | Method and Description |
---|---|
ApplicationDescriptor |
applicationName(String applicationName)
Sets the
application-name element |
DataSourceType<ApplicationDescriptor> |
createDataSource()
Creates a new
data-source element |
EjbLocalRefType<ApplicationDescriptor> |
createEjbLocalRef()
Creates a new
ejb-local-ref element |
EjbRefType<ApplicationDescriptor> |
createEjbRef()
Creates a new
ejb-ref element |
EnvEntryType<ApplicationDescriptor> |
createEnvEntry()
Creates a new
env-entry element |
IconType<ApplicationDescriptor> |
createIcon()
Creates a new
icon element |
MessageDestinationType<ApplicationDescriptor> |
createMessageDestination()
Creates a new
message-destination element |
MessageDestinationRefType<ApplicationDescriptor> |
createMessageDestinationRef()
Creates a new
message-destination-ref element |
ModuleType<ApplicationDescriptor> |
createModule()
Creates a new
module element |
PersistenceContextRefType<ApplicationDescriptor> |
createPersistenceContextRef()
Creates a new
persistence-context-ref element |
PersistenceUnitRefType<ApplicationDescriptor> |
createPersistenceUnitRef()
Creates a new
persistence-unit-ref element |
ResourceEnvRefType<ApplicationDescriptor> |
createResourceEnvRef()
Creates a new
resource-env-ref element |
ResourceRefType<ApplicationDescriptor> |
createResourceRef()
Creates a new
resource-ref element |
SecurityRoleType<ApplicationDescriptor> |
createSecurityRole()
Creates a new
security-role element |
ServiceRefType<ApplicationDescriptor> |
createServiceRef()
Creates a new
service-ref element |
ApplicationDescriptor |
description(String... values)
Creates for all String objects representing
description elements,
a new description element |
ApplicationDescriptor |
displayName(String... values)
Creates for all String objects representing
display-name elements,
a new display-name element |
List<DataSourceType<ApplicationDescriptor>> |
getAllDataSource()
Returns all
data-source elements |
List<String> |
getAllDescription()
Returns all
description elements |
List<String> |
getAllDisplayName()
Returns all
display-name elements |
List<EjbLocalRefType<ApplicationDescriptor>> |
getAllEjbLocalRef()
Returns all
ejb-local-ref elements |
List<EjbRefType<ApplicationDescriptor>> |
getAllEjbRef()
Returns all
ejb-ref elements |
List<EnvEntryType<ApplicationDescriptor>> |
getAllEnvEntry()
Returns all
env-entry elements |
List<IconType<ApplicationDescriptor>> |
getAllIcon()
Returns all
icon elements |
List<MessageDestinationType<ApplicationDescriptor>> |
getAllMessageDestination()
Returns all
message-destination elements |
List<MessageDestinationRefType<ApplicationDescriptor>> |
getAllMessageDestinationRef()
Returns all
message-destination-ref elements |
List<ModuleType<ApplicationDescriptor>> |
getAllModule()
Returns all
module elements |
List<PersistenceContextRefType<ApplicationDescriptor>> |
getAllPersistenceContextRef()
Returns all
persistence-context-ref elements |
List<PersistenceUnitRefType<ApplicationDescriptor>> |
getAllPersistenceUnitRef()
Returns all
persistence-unit-ref elements |
List<ResourceEnvRefType<ApplicationDescriptor>> |
getAllResourceEnvRef()
Returns all
resource-env-ref elements |
List<ResourceRefType<ApplicationDescriptor>> |
getAllResourceRef()
Returns all
resource-ref elements |
List<SecurityRoleType<ApplicationDescriptor>> |
getAllSecurityRole()
Returns all
security-role elements |
List<ServiceRefType<ApplicationDescriptor>> |
getAllServiceRef()
Returns all
service-ref elements |
String |
getApplicationName()
Returns the
application-name element |
String |
getId()
Returns the
id attribute |
GenericBooleanType |
getInitializeInOrder()
Returns the
initialize-in-order element |
String |
getInitializeInOrderAsString()
Returns the
initialize-in-order element |
String |
getLibraryDirectory()
Returns the
library-directory element |
DataSourceType<ApplicationDescriptor> |
getOrCreateDataSource()
If not already created, a new
data-source element will be created and returned. |
EjbLocalRefType<ApplicationDescriptor> |
getOrCreateEjbLocalRef()
If not already created, a new
ejb-local-ref element will be created and returned. |
EjbRefType<ApplicationDescriptor> |
getOrCreateEjbRef()
If not already created, a new
ejb-ref element will be created and returned. |
EnvEntryType<ApplicationDescriptor> |
getOrCreateEnvEntry()
If not already created, a new
env-entry element will be created and returned. |
IconType<ApplicationDescriptor> |
getOrCreateIcon()
If not already created, a new
icon element will be created and returned. |
MessageDestinationType<ApplicationDescriptor> |
getOrCreateMessageDestination()
If not already created, a new
message-destination element will be created and returned. |
MessageDestinationRefType<ApplicationDescriptor> |
getOrCreateMessageDestinationRef()
If not already created, a new
message-destination-ref element will be created and returned. |
ModuleType<ApplicationDescriptor> |
getOrCreateModule()
If not already created, a new
module element will be created and returned. |
PersistenceContextRefType<ApplicationDescriptor> |
getOrCreatePersistenceContextRef()
If not already created, a new
persistence-context-ref element will be created and returned. |
PersistenceUnitRefType<ApplicationDescriptor> |
getOrCreatePersistenceUnitRef()
If not already created, a new
persistence-unit-ref element will be created and returned. |
ResourceEnvRefType<ApplicationDescriptor> |
getOrCreateResourceEnvRef()
If not already created, a new
resource-env-ref element will be created and returned. |
ResourceRefType<ApplicationDescriptor> |
getOrCreateResourceRef()
If not already created, a new
resource-ref element will be created and returned. |
SecurityRoleType<ApplicationDescriptor> |
getOrCreateSecurityRole()
If not already created, a new
security-role element will be created and returned. |
ServiceRefType<ApplicationDescriptor> |
getOrCreateServiceRef()
If not already created, a new
service-ref element will be created and returned. |
String |
getVersion()
Returns the
version attribute |
ApplicationDescriptor |
id(String id)
Sets the
id attribute |
ApplicationDescriptor |
initializeInOrder(GenericBooleanType initializeInOrder)
Sets the
initialize-in-order element |
ApplicationDescriptor |
initializeInOrder(String initializeInOrder)
Sets the
initialize-in-order element |
ApplicationDescriptor |
libraryDirectory(String libraryDirectory)
Sets the
library-directory element |
ApplicationDescriptor |
removeAllDataSource()
Removes all
data-source elements |
ApplicationDescriptor |
removeAllDescription()
Removes the
description element |
ApplicationDescriptor |
removeAllDisplayName()
Removes the
display-name element |
ApplicationDescriptor |
removeAllEjbLocalRef()
Removes all
ejb-local-ref elements |
ApplicationDescriptor |
removeAllEjbRef()
Removes all
ejb-ref elements |
ApplicationDescriptor |
removeAllEnvEntry()
Removes all
env-entry elements |
ApplicationDescriptor |
removeAllIcon()
Removes all
icon elements |
ApplicationDescriptor |
removeAllMessageDestination()
Removes all
message-destination elements |
ApplicationDescriptor |
removeAllMessageDestinationRef()
Removes all
message-destination-ref elements |
ApplicationDescriptor |
removeAllModule()
Removes all
module elements |
ApplicationDescriptor |
removeAllPersistenceContextRef()
Removes all
persistence-context-ref elements |
ApplicationDescriptor |
removeAllPersistenceUnitRef()
Removes all
persistence-unit-ref elements |
ApplicationDescriptor |
removeAllResourceEnvRef()
Removes all
resource-env-ref elements |
ApplicationDescriptor |
removeAllResourceRef()
Removes all
resource-ref elements |
ApplicationDescriptor |
removeAllSecurityRole()
Removes all
security-role elements |
ApplicationDescriptor |
removeAllServiceRef()
Removes all
service-ref elements |
ApplicationDescriptor |
removeApplicationName()
Removes the
application-name element |
ApplicationDescriptor |
removeId()
Removes the
id attribute |
ApplicationDescriptor |
removeInitializeInOrder()
Removes the
initialize-in-order attribute |
ApplicationDescriptor |
removeLibraryDirectory()
Removes the
library-directory element |
ApplicationDescriptor |
removeVersion()
Removes the
version attribute |
ApplicationDescriptor |
version(String version)
Sets the
version attribute |
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces
exportAsString, exportTo, getDescriptorName
static final String VERSION
ApplicationDescriptor description(String... values)
description
elements,
a new description
elementvalues
- list of description
objectsApplicationDescriptor
List<String> getAllDescription()
description
elementsdescription
ApplicationDescriptor removeAllDescription()
description
elementApplicationDescriptor
ApplicationDescriptor displayName(String... values)
display-name
elements,
a new display-name
elementvalues
- list of display-name
objectsApplicationDescriptor
List<String> getAllDisplayName()
display-name
elementsdisplay-name
ApplicationDescriptor removeAllDisplayName()
display-name
elementApplicationDescriptor
IconType<ApplicationDescriptor> getOrCreateIcon()
icon
element will be created and returned.
Otherwise, the first existing icon
element will be returned.icon
IconType<ApplicationDescriptor> createIcon()
icon
elementIconType
List<IconType<ApplicationDescriptor>> getAllIcon()
icon
elementsicon
ApplicationDescriptor removeAllIcon()
icon
elementsIconType
ServiceRefType<ApplicationDescriptor> getOrCreateServiceRef()
service-ref
element will be created and returned.
Otherwise, the first existing service-ref
element will be returned.service-ref
ServiceRefType<ApplicationDescriptor> createServiceRef()
service-ref
elementServiceRefType
List<ServiceRefType<ApplicationDescriptor>> getAllServiceRef()
service-ref
elementsservice-ref
ApplicationDescriptor removeAllServiceRef()
service-ref
elementsServiceRefType
ApplicationDescriptor applicationName(String applicationName)
application-name
elementapplicationName
- the value for the element application-name
ApplicationDescriptor
String getApplicationName()
application-name
elementapplication-name
ApplicationDescriptor removeApplicationName()
application-name
elementApplicationDescriptor
ApplicationDescriptor initializeInOrder(GenericBooleanType initializeInOrder)
initialize-in-order
elementinitializeInOrder
- the value for the element initialize-in-order
ApplicationDescriptor
ApplicationDescriptor initializeInOrder(String initializeInOrder)
initialize-in-order
elementinitializeInOrder
- the value for the element initialize-in-order
ApplicationDescriptor
GenericBooleanType getInitializeInOrder()
initialize-in-order
elementinitialize-in-order
String getInitializeInOrderAsString()
initialize-in-order
elementinitialize-in-order
ApplicationDescriptor removeInitializeInOrder()
initialize-in-order
attributeApplicationDescriptor
ModuleType<ApplicationDescriptor> getOrCreateModule()
module
element will be created and returned.
Otherwise, the first existing module
element will be returned.module
ModuleType<ApplicationDescriptor> createModule()
module
elementModuleType
List<ModuleType<ApplicationDescriptor>> getAllModule()
module
elementsmodule
ApplicationDescriptor removeAllModule()
module
elementsModuleType
SecurityRoleType<ApplicationDescriptor> getOrCreateSecurityRole()
security-role
element will be created and returned.
Otherwise, the first existing security-role
element will be returned.security-role
SecurityRoleType<ApplicationDescriptor> createSecurityRole()
security-role
elementSecurityRoleType
List<SecurityRoleType<ApplicationDescriptor>> getAllSecurityRole()
security-role
elementssecurity-role
ApplicationDescriptor removeAllSecurityRole()
security-role
elementsSecurityRoleType
ApplicationDescriptor libraryDirectory(String libraryDirectory)
library-directory
elementlibraryDirectory
- the value for the element library-directory
ApplicationDescriptor
String getLibraryDirectory()
library-directory
elementlibrary-directory
ApplicationDescriptor removeLibraryDirectory()
library-directory
elementApplicationDescriptor
EnvEntryType<ApplicationDescriptor> getOrCreateEnvEntry()
env-entry
element will be created and returned.
Otherwise, the first existing env-entry
element will be returned.env-entry
EnvEntryType<ApplicationDescriptor> createEnvEntry()
env-entry
elementEnvEntryType
List<EnvEntryType<ApplicationDescriptor>> getAllEnvEntry()
env-entry
elementsenv-entry
ApplicationDescriptor removeAllEnvEntry()
env-entry
elementsEnvEntryType
EjbRefType<ApplicationDescriptor> getOrCreateEjbRef()
ejb-ref
element will be created and returned.
Otherwise, the first existing ejb-ref
element will be returned.ejb-ref
EjbRefType<ApplicationDescriptor> createEjbRef()
ejb-ref
elementEjbRefType
List<EjbRefType<ApplicationDescriptor>> getAllEjbRef()
ejb-ref
elementsejb-ref
ApplicationDescriptor removeAllEjbRef()
ejb-ref
elementsEjbRefType
EjbLocalRefType<ApplicationDescriptor> getOrCreateEjbLocalRef()
ejb-local-ref
element will be created and returned.
Otherwise, the first existing ejb-local-ref
element will be returned.ejb-local-ref
EjbLocalRefType<ApplicationDescriptor> createEjbLocalRef()
ejb-local-ref
elementEjbLocalRefType
List<EjbLocalRefType<ApplicationDescriptor>> getAllEjbLocalRef()
ejb-local-ref
elementsejb-local-ref
ApplicationDescriptor removeAllEjbLocalRef()
ejb-local-ref
elementsEjbLocalRefType
ResourceRefType<ApplicationDescriptor> getOrCreateResourceRef()
resource-ref
element will be created and returned.
Otherwise, the first existing resource-ref
element will be returned.resource-ref
ResourceRefType<ApplicationDescriptor> createResourceRef()
resource-ref
elementResourceRefType
List<ResourceRefType<ApplicationDescriptor>> getAllResourceRef()
resource-ref
elementsresource-ref
ApplicationDescriptor removeAllResourceRef()
resource-ref
elementsResourceRefType
ResourceEnvRefType<ApplicationDescriptor> getOrCreateResourceEnvRef()
resource-env-ref
element will be created and returned.
Otherwise, the first existing resource-env-ref
element will be returned.resource-env-ref
ResourceEnvRefType<ApplicationDescriptor> createResourceEnvRef()
resource-env-ref
elementResourceEnvRefType
List<ResourceEnvRefType<ApplicationDescriptor>> getAllResourceEnvRef()
resource-env-ref
elementsresource-env-ref
ApplicationDescriptor removeAllResourceEnvRef()
resource-env-ref
elementsResourceEnvRefType
MessageDestinationRefType<ApplicationDescriptor> getOrCreateMessageDestinationRef()
message-destination-ref
element will be created and returned.
Otherwise, the first existing message-destination-ref
element will be returned.message-destination-ref
MessageDestinationRefType<ApplicationDescriptor> createMessageDestinationRef()
message-destination-ref
elementMessageDestinationRefType
List<MessageDestinationRefType<ApplicationDescriptor>> getAllMessageDestinationRef()
message-destination-ref
elementsmessage-destination-ref
ApplicationDescriptor removeAllMessageDestinationRef()
message-destination-ref
elementsMessageDestinationRefType
PersistenceContextRefType<ApplicationDescriptor> getOrCreatePersistenceContextRef()
persistence-context-ref
element will be created and returned.
Otherwise, the first existing persistence-context-ref
element will be returned.persistence-context-ref
PersistenceContextRefType<ApplicationDescriptor> createPersistenceContextRef()
persistence-context-ref
elementPersistenceContextRefType
List<PersistenceContextRefType<ApplicationDescriptor>> getAllPersistenceContextRef()
persistence-context-ref
elementspersistence-context-ref
ApplicationDescriptor removeAllPersistenceContextRef()
persistence-context-ref
elementsPersistenceContextRefType
PersistenceUnitRefType<ApplicationDescriptor> getOrCreatePersistenceUnitRef()
persistence-unit-ref
element will be created and returned.
Otherwise, the first existing persistence-unit-ref
element will be returned.persistence-unit-ref
PersistenceUnitRefType<ApplicationDescriptor> createPersistenceUnitRef()
persistence-unit-ref
elementPersistenceUnitRefType
List<PersistenceUnitRefType<ApplicationDescriptor>> getAllPersistenceUnitRef()
persistence-unit-ref
elementspersistence-unit-ref
ApplicationDescriptor removeAllPersistenceUnitRef()
persistence-unit-ref
elementsPersistenceUnitRefType
MessageDestinationType<ApplicationDescriptor> getOrCreateMessageDestination()
message-destination
element will be created and returned.
Otherwise, the first existing message-destination
element will be returned.message-destination
MessageDestinationType<ApplicationDescriptor> createMessageDestination()
message-destination
elementMessageDestinationType
List<MessageDestinationType<ApplicationDescriptor>> getAllMessageDestination()
message-destination
elementsmessage-destination
ApplicationDescriptor removeAllMessageDestination()
message-destination
elementsMessageDestinationType
DataSourceType<ApplicationDescriptor> getOrCreateDataSource()
data-source
element will be created and returned.
Otherwise, the first existing data-source
element will be returned.data-source
DataSourceType<ApplicationDescriptor> createDataSource()
data-source
elementDataSourceType
List<DataSourceType<ApplicationDescriptor>> getAllDataSource()
data-source
elementsdata-source
ApplicationDescriptor removeAllDataSource()
data-source
elementsDataSourceType
ApplicationDescriptor version(String version)
version
attributeversion
in interface ApplicationCommonDescriptor<ApplicationDescriptor,ModuleType<ApplicationDescriptor>,SecurityRoleType<ApplicationDescriptor>>
version
- the value for the attribute version
ApplicationDescriptor
String getVersion()
version
attributegetVersion
in interface ApplicationCommonDescriptor<ApplicationDescriptor,ModuleType<ApplicationDescriptor>,SecurityRoleType<ApplicationDescriptor>>
version
ApplicationDescriptor removeVersion()
version
attributeremoveVersion
in interface ApplicationCommonDescriptor<ApplicationDescriptor,ModuleType<ApplicationDescriptor>,SecurityRoleType<ApplicationDescriptor>>
ApplicationDescriptor
ApplicationDescriptor id(String id)
id
attributeid
in interface ApplicationCommonDescriptor<ApplicationDescriptor,ModuleType<ApplicationDescriptor>,SecurityRoleType<ApplicationDescriptor>>
id
- the value for the attribute id
ApplicationDescriptor
String getId()
id
attributegetId
in interface ApplicationCommonDescriptor<ApplicationDescriptor,ModuleType<ApplicationDescriptor>,SecurityRoleType<ApplicationDescriptor>>
id
ApplicationDescriptor removeId()
id
attributeremoveId
in interface ApplicationCommonDescriptor<ApplicationDescriptor,ModuleType<ApplicationDescriptor>,SecurityRoleType<ApplicationDescriptor>>
ApplicationDescriptor
Copyright © 2019 JBoss by Red Hat. All rights reserved.