
public interface DatasourcesDescriptor extends org.jboss.shrinkwrap.descriptor.api.Descriptor, org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<DatasourcesDescriptor>
This deployment descriptor provides the functionalities as described in the specification
Example:
DatasourcesDescriptor descriptor = Descriptors.create(DatasourcesDescriptor.class);
| Modifier and Type | Method and Description |
|---|---|
DatasourceType<DatasourcesDescriptor> |
createDatasource()
Creates a new
datasource element |
XaDatasourceType<DatasourcesDescriptor> |
createXaDatasource()
Creates a new
xa-datasource element |
List<DatasourceType<DatasourcesDescriptor>> |
getAllDatasource()
Returns all
datasource elements |
List<XaDatasourceType<DatasourcesDescriptor>> |
getAllXaDatasource()
Returns all
xa-datasource elements |
DatasourceType<DatasourcesDescriptor> |
getOrCreateDatasource()
If not already created, a new
datasource element will be created and returned. |
DriversType<DatasourcesDescriptor> |
getOrCreateDrivers()
If not already created, a new
drivers element with the given value will be created. |
XaDatasourceType<DatasourcesDescriptor> |
getOrCreateXaDatasource()
If not already created, a new
xa-datasource element will be created and returned. |
DatasourcesDescriptor |
removeAllDatasource()
Removes all
datasource elements |
DatasourcesDescriptor |
removeAllXaDatasource()
Removes all
xa-datasource elements |
DatasourcesDescriptor |
removeDrivers()
Removes the
drivers element |
DatasourceType<DatasourcesDescriptor> getOrCreateDatasource()
datasource element will be created and returned.
Otherwise, the first existing datasource element will be returned.datasourceDatasourceType<DatasourcesDescriptor> createDatasource()
datasource elementDatasourceTypeList<DatasourceType<DatasourcesDescriptor>> getAllDatasource()
datasource elementsdatasourceDatasourcesDescriptor removeAllDatasource()
datasource elementsDatasourceTypeXaDatasourceType<DatasourcesDescriptor> getOrCreateXaDatasource()
xa-datasource element will be created and returned.
Otherwise, the first existing xa-datasource element will be returned.xa-datasourceXaDatasourceType<DatasourcesDescriptor> createXaDatasource()
xa-datasource elementXaDatasourceTypeList<XaDatasourceType<DatasourcesDescriptor>> getAllXaDatasource()
xa-datasource elementsxa-datasourceDatasourcesDescriptor removeAllXaDatasource()
xa-datasource elementsXaDatasourceTypeDriversType<DatasourcesDescriptor> getOrCreateDrivers()
drivers element with the given value will be created.
Otherwise, the existing drivers element will be returned.DriversTypeDatasourcesDescriptor removeDrivers()
drivers elementDatasourcesDescriptorCopyright © 2013 IronJacamar (http://www.ironjacamar.org)