Class DatasourcesDescriptorImpl
java.lang.Object
org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase<org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor>
org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
org.jboss.jca.embedded.dsl.datasources11.impl.DatasourcesDescriptorImpl
- All Implemented Interfaces:
DatasourcesDescriptor,org.jboss.shrinkwrap.descriptor.api.Descriptor,org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<DatasourcesDescriptor>,org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
public class DatasourcesDescriptorImpl
extends org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
implements org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<DatasourcesDescriptor>, DatasourcesDescriptor
This deployment descriptor provides the functionalities as described in the specification
Example:
DatasourcesDescriptor descriptor = Descriptors.create(DatasourcesDescriptor.class);
-
Constructor Summary
ConstructorsConstructorDescriptionDatasourcesDescriptorImpl(String descriptorName) DatasourcesDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node) -
Method Summary
Modifier and TypeMethodDescriptionAdds the default namespaces as defined in the specificationaddNamespace(String name, String value) Adds a new namespaceCreates a newdatasourceelementCreates a newxa-datasourceelementReturns alldatasourceelementsReturns allxa-datasourceelementsReturns all defined namespaces.If not already created, a newdatasourceelement will be created and returned.If not already created, a newdriverselement with the given value will be created.If not already created, a newxa-datasourceelement will be created and returned.org.jboss.shrinkwrap.descriptor.spi.node.NodeRemoves alldatasourceelementsRemoves all existing namespaces.Removes allxa-datasourceelementsRemoves thedriverselementMethods inherited from class org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
exportTo, getExporterMethods inherited from class org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase
exportAsString, getDescriptorNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor
exportAsString, exportTo, getDescriptorName
-
Constructor Details
-
DatasourcesDescriptorImpl
-
DatasourcesDescriptorImpl
public DatasourcesDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
-
-
Method Details
-
getRootNode
public org.jboss.shrinkwrap.descriptor.spi.node.Node getRootNode()- Specified by:
getRootNodein interfaceorg.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
-
addDefaultNamespaces
Adds the default namespaces as defined in the specification- Specified by:
addDefaultNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<DatasourcesDescriptor>- Returns:
- the current instance of
DatasourcesDescriptor
-
addNamespace
Adds a new namespace- Specified by:
addNamespacein interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<DatasourcesDescriptor>- Returns:
- the current instance of
DatasourcesDescriptor
-
getNamespaces
Returns all defined namespaces.- Specified by:
getNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<DatasourcesDescriptor>- Returns:
- all defined namespaces
-
removeAllNamespaces
Removes all existing namespaces.- Specified by:
removeAllNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<DatasourcesDescriptor>- Returns:
- the current instance of
DatasourcesDescriptor
-
getOrCreateDatasource
If not already created, a newdatasourceelement will be created and returned. Otherwise, the first existingdatasourceelement will be returned.- Specified by:
getOrCreateDatasourcein interfaceDatasourcesDescriptor- Returns:
- the instance defined for the element
datasource
-
createDatasource
Creates a newdatasourceelement- Specified by:
createDatasourcein interfaceDatasourcesDescriptor- Returns:
- the new created instance of
DatasourceType
-
getAllDatasource
Returns alldatasourceelements- Specified by:
getAllDatasourcein interfaceDatasourcesDescriptor- Returns:
- list of
datasource
-
removeAllDatasource
Removes alldatasourceelements- Specified by:
removeAllDatasourcein interfaceDatasourcesDescriptor- Returns:
- the current instance of
DatasourceType
-
getOrCreateXaDatasource
If not already created, a newxa-datasourceelement will be created and returned. Otherwise, the first existingxa-datasourceelement will be returned.- Specified by:
getOrCreateXaDatasourcein interfaceDatasourcesDescriptor- Returns:
- the instance defined for the element
xa-datasource
-
createXaDatasource
Creates a newxa-datasourceelement- Specified by:
createXaDatasourcein interfaceDatasourcesDescriptor- Returns:
- the new created instance of
XaDatasourceType
-
getAllXaDatasource
Returns allxa-datasourceelements- Specified by:
getAllXaDatasourcein interfaceDatasourcesDescriptor- Returns:
- list of
xa-datasource
-
removeAllXaDatasource
Removes allxa-datasourceelements- Specified by:
removeAllXaDatasourcein interfaceDatasourcesDescriptor- Returns:
- the current instance of
XaDatasourceType
-
getOrCreateDrivers
If not already created, a newdriverselement with the given value will be created. Otherwise, the existingdriverselement will be returned.- Specified by:
getOrCreateDriversin interfaceDatasourcesDescriptor- Returns:
- a new or existing instance of
DriversType
-
removeDrivers
Removes thedriverselement- Specified by:
removeDriversin interfaceDatasourcesDescriptor- Returns:
- the current instance of
DatasourcesDescriptor
-