|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationDescriptor
This deployment descriptor provides the functionalities as described in the specification
Example:
ApplicationDescriptor descriptor = Descriptors.create(ApplicationDescriptor.class);
Method Summary | |
---|---|
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 |
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 |
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 |
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 |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor |
---|
exportAsString, exportTo, getDescriptorName |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace |
---|
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces |
Method Detail |
---|
ApplicationDescriptor description(String... values)
description
elements,
a new description
element
values
- list of description
objects
ApplicationDescriptor
List<String> getAllDescription()
description
elements
description
ApplicationDescriptor removeAllDescription()
description
element
ApplicationDescriptor
ApplicationDescriptor displayName(String... values)
display-name
elements,
a new display-name
element
values
- list of display-name
objects
ApplicationDescriptor
List<String> getAllDisplayName()
display-name
elements
display-name
ApplicationDescriptor removeAllDisplayName()
display-name
element
ApplicationDescriptor
IconType<ApplicationDescriptor> getOrCreateIcon()
icon
element will be created and returned.
Otherwise, the first existing icon
element will be returned.
icon
IconType<ApplicationDescriptor> createIcon()
icon
element
IconType
List<IconType<ApplicationDescriptor>> getAllIcon()
icon
elements
icon
ApplicationDescriptor removeAllIcon()
icon
elements
IconType
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
element
ServiceRefType
List<ServiceRefType<ApplicationDescriptor>> getAllServiceRef()
service-ref
elements
service-ref
ApplicationDescriptor removeAllServiceRef()
service-ref
elements
ServiceRefType
ApplicationDescriptor applicationName(String applicationName)
application-name
element
applicationName
- the value for the element application-name
ApplicationDescriptor
String getApplicationName()
application-name
element
application-name
ApplicationDescriptor removeApplicationName()
application-name
element
ApplicationDescriptor
ApplicationDescriptor initializeInOrder(GenericBooleanType initializeInOrder)
initialize-in-order
element
initializeInOrder
- the value for the element initialize-in-order
ApplicationDescriptor
ApplicationDescriptor initializeInOrder(String initializeInOrder)
initialize-in-order
element
initializeInOrder
- the value for the element initialize-in-order
ApplicationDescriptor
GenericBooleanType getInitializeInOrder()
initialize-in-order
element
initialize-in-order
String getInitializeInOrderAsString()
initialize-in-order
element
initialize-in-order
ApplicationDescriptor removeInitializeInOrder()
initialize-in-order
attribute
ApplicationDescriptor
ModuleType<ApplicationDescriptor> getOrCreateModule()
module
element will be created and returned.
Otherwise, the first existing module
element will be returned.
module
ModuleType<ApplicationDescriptor> createModule()
module
element
ModuleType
List<ModuleType<ApplicationDescriptor>> getAllModule()
module
elements
module
ApplicationDescriptor removeAllModule()
module
elements
ModuleType
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
element
SecurityRoleType
List<SecurityRoleType<ApplicationDescriptor>> getAllSecurityRole()
security-role
elements
security-role
ApplicationDescriptor removeAllSecurityRole()
security-role
elements
SecurityRoleType
ApplicationDescriptor libraryDirectory(String libraryDirectory)
library-directory
element
libraryDirectory
- the value for the element library-directory
ApplicationDescriptor
String getLibraryDirectory()
library-directory
element
library-directory
ApplicationDescriptor removeLibraryDirectory()
library-directory
element
ApplicationDescriptor
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
element
EnvEntryType
List<EnvEntryType<ApplicationDescriptor>> getAllEnvEntry()
env-entry
elements
env-entry
ApplicationDescriptor removeAllEnvEntry()
env-entry
elements
EnvEntryType
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
element
EjbRefType
List<EjbRefType<ApplicationDescriptor>> getAllEjbRef()
ejb-ref
elements
ejb-ref
ApplicationDescriptor removeAllEjbRef()
ejb-ref
elements
EjbRefType
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
element
EjbLocalRefType
List<EjbLocalRefType<ApplicationDescriptor>> getAllEjbLocalRef()
ejb-local-ref
elements
ejb-local-ref
ApplicationDescriptor removeAllEjbLocalRef()
ejb-local-ref
elements
EjbLocalRefType
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
element
ResourceRefType
List<ResourceRefType<ApplicationDescriptor>> getAllResourceRef()
resource-ref
elements
resource-ref
ApplicationDescriptor removeAllResourceRef()
resource-ref
elements
ResourceRefType
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
element
ResourceEnvRefType
List<ResourceEnvRefType<ApplicationDescriptor>> getAllResourceEnvRef()
resource-env-ref
elements
resource-env-ref
ApplicationDescriptor removeAllResourceEnvRef()
resource-env-ref
elements
ResourceEnvRefType
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
element
MessageDestinationRefType
List<MessageDestinationRefType<ApplicationDescriptor>> getAllMessageDestinationRef()
message-destination-ref
elements
message-destination-ref
ApplicationDescriptor removeAllMessageDestinationRef()
message-destination-ref
elements
MessageDestinationRefType
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
element
PersistenceContextRefType
List<PersistenceContextRefType<ApplicationDescriptor>> getAllPersistenceContextRef()
persistence-context-ref
elements
persistence-context-ref
ApplicationDescriptor removeAllPersistenceContextRef()
persistence-context-ref
elements
PersistenceContextRefType
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
element
PersistenceUnitRefType
List<PersistenceUnitRefType<ApplicationDescriptor>> getAllPersistenceUnitRef()
persistence-unit-ref
elements
persistence-unit-ref
ApplicationDescriptor removeAllPersistenceUnitRef()
persistence-unit-ref
elements
PersistenceUnitRefType
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
element
MessageDestinationType
List<MessageDestinationType<ApplicationDescriptor>> getAllMessageDestination()
message-destination
elements
message-destination
ApplicationDescriptor removeAllMessageDestination()
message-destination
elements
MessageDestinationType
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
element
DataSourceType
List<DataSourceType<ApplicationDescriptor>> getAllDataSource()
data-source
elements
data-source
ApplicationDescriptor removeAllDataSource()
data-source
elements
DataSourceType
ApplicationDescriptor version(String version)
version
attribute
version
- the value for the attribute version
ApplicationDescriptor
String getVersion()
version
attribute
version
ApplicationDescriptor removeVersion()
version
attribute
ApplicationDescriptor
|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |