|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase<org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor>
org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
org.jboss.datasources.impl.DatasourcesDescriptorImpl
public class DatasourcesDescriptorImpl
This deployment descriptor provides the functionalities as described in the specification
Example:
DatasourcesDescriptor descriptor = Descriptors.create(DatasourcesDescriptor.class);
Constructor Summary | |
---|---|
DatasourcesDescriptorImpl(String descriptorName)
|
|
DatasourcesDescriptorImpl(String descriptorName,
org.jboss.shrinkwrap.descriptor.spi.node.Node node)
|
Method Summary | |
---|---|
DatasourcesDescriptor |
addDefaultNamespaces()
Adds the default namespaces as defined in the specification |
DatasourcesDescriptor |
addNamespace(String name,
String value)
Adds a new namespace |
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 |
List<String> |
getNamespaces()
Returns all defined namespaces. |
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. |
org.jboss.shrinkwrap.descriptor.spi.node.Node |
getRootNode()
|
DatasourcesDescriptor |
removeAllDatasource()
Removes all datasource elements |
DatasourcesDescriptor |
removeAllNamespaces()
Removes all existing namespaces. |
DatasourcesDescriptor |
removeAllXaDatasource()
Removes all xa-datasource elements |
DatasourcesDescriptor |
removeDrivers()
Removes the drivers element |
Methods inherited from class org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase |
---|
exportTo, getExporter |
Methods inherited from class org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase |
---|
exportAsString, getDescriptorName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor |
---|
exportAsString, exportTo, getDescriptorName |
Constructor Detail |
---|
public DatasourcesDescriptorImpl(String descriptorName)
public DatasourcesDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
Method Detail |
---|
public org.jboss.shrinkwrap.descriptor.spi.node.Node getRootNode()
getRootNode
in interface org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
public DatasourcesDescriptor addDefaultNamespaces()
addDefaultNamespaces
in interface DescriptorNamespace<DatasourcesDescriptor>
DatasourcesDescriptor
public DatasourcesDescriptor addNamespace(String name, String value)
addNamespace
in interface DescriptorNamespace<DatasourcesDescriptor>
name
- the name of the namespacevalue
- the value of the namespace
DatasourcesDescriptor
public List<String> getNamespaces()
getNamespaces
in interface DescriptorNamespace<DatasourcesDescriptor>
public DatasourcesDescriptor removeAllNamespaces()
removeAllNamespaces
in interface DescriptorNamespace<DatasourcesDescriptor>
DatasourcesDescriptor
public DatasourceType<DatasourcesDescriptor> getOrCreateDatasource()
datasource
element will be created and returned.
Otherwise, the first existing datasource
element will be returned.
getOrCreateDatasource
in interface DatasourcesDescriptor
datasource
public DatasourceType<DatasourcesDescriptor> createDatasource()
datasource
element
createDatasource
in interface DatasourcesDescriptor
DatasourceType
public List<DatasourceType<DatasourcesDescriptor>> getAllDatasource()
datasource
elements
getAllDatasource
in interface DatasourcesDescriptor
datasource
public DatasourcesDescriptor removeAllDatasource()
datasource
elements
removeAllDatasource
in interface DatasourcesDescriptor
DatasourceType
public XaDatasourceType<DatasourcesDescriptor> getOrCreateXaDatasource()
xa-datasource
element will be created and returned.
Otherwise, the first existing xa-datasource
element will be returned.
getOrCreateXaDatasource
in interface DatasourcesDescriptor
xa-datasource
public XaDatasourceType<DatasourcesDescriptor> createXaDatasource()
xa-datasource
element
createXaDatasource
in interface DatasourcesDescriptor
XaDatasourceType
public List<XaDatasourceType<DatasourcesDescriptor>> getAllXaDatasource()
xa-datasource
elements
getAllXaDatasource
in interface DatasourcesDescriptor
xa-datasource
public DatasourcesDescriptor removeAllXaDatasource()
xa-datasource
elements
removeAllXaDatasource
in interface DatasourcesDescriptor
XaDatasourceType
public DriversType<DatasourcesDescriptor> getOrCreateDrivers()
drivers
element with the given value will be created.
Otherwise, the existing drivers
element will be returned.
getOrCreateDrivers
in interface DatasourcesDescriptor
DriversType
public DatasourcesDescriptor removeDrivers()
drivers
element
removeDrivers
in interface DatasourcesDescriptor
DatasourcesDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |