Interface ResourceAdapterType<T>
-
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
ResourceAdapterTypeImpl
public interface ResourceAdapterType<T> extends org.jboss.shrinkwrap.descriptor.api.Child<T>This interface defines the contract for theresource-adapterTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceAdapterType<T>archive(String archive)Sets thearchiveelementResourceAdapterType<T>bootstrapContext(String bootstrapContext)Sets thebootstrap-contextelementConfigPropertyType<ResourceAdapterType<T>>createConfigProperty()Creates a newconfig-propertyelementList<ConfigPropertyType<ResourceAdapterType<T>>>getAllConfigProperty()Returns allconfig-propertyelementsStringgetArchive()Returns thearchiveelementStringgetBootstrapContext()Returns thebootstrap-contextelementStringgetId()Returns theidattributeAdminObjectsType<ResourceAdapterType<T>>getOrCreateAdminObjects()If not already created, a newadmin-objectselement with the given value will be created.BeanValidationGroupsType<ResourceAdapterType<T>>getOrCreateBeanValidationGroups()If not already created, a newbean-validation-groupselement with the given value will be created.ConfigPropertyType<ResourceAdapterType<T>>getOrCreateConfigProperty()If not already created, a newconfig-propertyelement will be created and returned.ConnectionDefinitionsType<ResourceAdapterType<T>>getOrCreateConnectionDefinitions()If not already created, a newconnection-definitionselement with the given value will be created.WorkmanagerType<ResourceAdapterType<T>>getOrCreateWorkmanager()If not already created, a newworkmanagerelement with the given value will be created.TransactionSupportTypegetTransactionSupport()Returns thetransaction-supportelementStringgetTransactionSupportAsString()Returns thetransaction-supportelementResourceAdapterType<T>id(String id)Sets theidattributeResourceAdapterType<T>removeAdminObjects()Removes theadmin-objectselementResourceAdapterType<T>removeAllConfigProperty()Removes allconfig-propertyelementsResourceAdapterType<T>removeArchive()Removes thearchiveelementResourceAdapterType<T>removeBeanValidationGroups()Removes thebean-validation-groupselementResourceAdapterType<T>removeBootstrapContext()Removes thebootstrap-contextelementResourceAdapterType<T>removeConnectionDefinitions()Removes theconnection-definitionselementResourceAdapterType<T>removeId()Removes theidattributeResourceAdapterType<T>removeTransactionSupport()Removes thetransaction-supportattributeResourceAdapterType<T>removeWorkmanager()Removes theworkmanagerelementResourceAdapterType<T>transactionSupport(String transactionSupport)Sets thetransaction-supportelementResourceAdapterType<T>transactionSupport(TransactionSupportType transactionSupport)Sets thetransaction-supportelement
-
-
-
Method Detail
-
archive
ResourceAdapterType<T> archive(String archive)
Sets thearchiveelement- Parameters:
archive- the value for the elementarchive- Returns:
- the current instance of
ResourceAdapterType
-
getArchive
String getArchive()
Returns thearchiveelement- Returns:
- the node defined for the element
archive
-
removeArchive
ResourceAdapterType<T> removeArchive()
Removes thearchiveelement- Returns:
- the current instance of
ResourceAdapterType
-
getOrCreateBeanValidationGroups
BeanValidationGroupsType<ResourceAdapterType<T>> getOrCreateBeanValidationGroups()
If not already created, a newbean-validation-groupselement with the given value will be created. Otherwise, the existingbean-validation-groupselement will be returned.- Returns:
- a new or existing instance of
BeanValidationGroupsType>
-
removeBeanValidationGroups
ResourceAdapterType<T> removeBeanValidationGroups()
Removes thebean-validation-groupselement- Returns:
- the current instance of
ResourceAdapterType
-
bootstrapContext
ResourceAdapterType<T> bootstrapContext(String bootstrapContext)
Sets thebootstrap-contextelement- Parameters:
bootstrapContext- the value for the elementbootstrap-context- Returns:
- the current instance of
ResourceAdapterType
-
getBootstrapContext
String getBootstrapContext()
Returns thebootstrap-contextelement- Returns:
- the node defined for the element
bootstrap-context
-
removeBootstrapContext
ResourceAdapterType<T> removeBootstrapContext()
Removes thebootstrap-contextelement- Returns:
- the current instance of
ResourceAdapterType
-
getOrCreateConfigProperty
ConfigPropertyType<ResourceAdapterType<T>> getOrCreateConfigProperty()
If not already created, a newconfig-propertyelement will be created and returned. Otherwise, the first existingconfig-propertyelement will be returned.- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
ConfigPropertyType<ResourceAdapterType<T>> createConfigProperty()
Creates a newconfig-propertyelement- Returns:
- the new created instance of
ConfigPropertyType>
-
getAllConfigProperty
List<ConfigPropertyType<ResourceAdapterType<T>>> getAllConfigProperty()
Returns allconfig-propertyelements- Returns:
- list of
config-property
-
removeAllConfigProperty
ResourceAdapterType<T> removeAllConfigProperty()
Removes allconfig-propertyelements- Returns:
- the current instance of
ConfigPropertyType>
-
transactionSupport
ResourceAdapterType<T> transactionSupport(TransactionSupportType transactionSupport)
Sets thetransaction-supportelement- Parameters:
transactionSupport- the value for the elementtransaction-support- Returns:
- the current instance of
ResourceAdapterType
-
transactionSupport
ResourceAdapterType<T> transactionSupport(String transactionSupport)
Sets thetransaction-supportelement- Parameters:
transactionSupport- the value for the elementtransaction-support- Returns:
- the current instance of
ResourceAdapterType
-
getTransactionSupport
TransactionSupportType getTransactionSupport()
Returns thetransaction-supportelement- Returns:
- the value found for the element
transaction-support
-
getTransactionSupportAsString
String getTransactionSupportAsString()
Returns thetransaction-supportelement- Returns:
- the value found for the element
transaction-support
-
removeTransactionSupport
ResourceAdapterType<T> removeTransactionSupport()
Removes thetransaction-supportattribute- Returns:
- the current instance of
ResourceAdapterType
-
getOrCreateWorkmanager
WorkmanagerType<ResourceAdapterType<T>> getOrCreateWorkmanager()
If not already created, a newworkmanagerelement with the given value will be created. Otherwise, the existingworkmanagerelement will be returned.- Returns:
- a new or existing instance of
WorkmanagerType>
-
removeWorkmanager
ResourceAdapterType<T> removeWorkmanager()
Removes theworkmanagerelement- Returns:
- the current instance of
ResourceAdapterType
-
getOrCreateConnectionDefinitions
ConnectionDefinitionsType<ResourceAdapterType<T>> getOrCreateConnectionDefinitions()
If not already created, a newconnection-definitionselement with the given value will be created. Otherwise, the existingconnection-definitionselement will be returned.- Returns:
- a new or existing instance of
ConnectionDefinitionsType>
-
removeConnectionDefinitions
ResourceAdapterType<T> removeConnectionDefinitions()
Removes theconnection-definitionselement- Returns:
- the current instance of
ResourceAdapterType
-
getOrCreateAdminObjects
AdminObjectsType<ResourceAdapterType<T>> getOrCreateAdminObjects()
If not already created, a newadmin-objectselement with the given value will be created. Otherwise, the existingadmin-objectselement will be returned.- Returns:
- a new or existing instance of
AdminObjectsType>
-
removeAdminObjects
ResourceAdapterType<T> removeAdminObjects()
Removes theadmin-objectselement- Returns:
- the current instance of
ResourceAdapterType
-
id
ResourceAdapterType<T> id(String id)
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ResourceAdapterType
-
getId
String getId()
Returns theidattribute- Returns:
- the value defined for the attribute
id
-
removeId
ResourceAdapterType<T> removeId()
Removes theidattribute- Returns:
- the current instance of
ResourceAdapterType
-
-