Interface DatasourcesDescriptor

  • All Superinterfaces:
    org.jboss.shrinkwrap.descriptor.api.Descriptor, org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<DatasourcesDescriptor>
    All Known Implementing Classes:
    DatasourcesDescriptorImpl

    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);

    • Method Detail

      • getOrCreateDatasource

        DatasourceType<DatasourcesDescriptor> getOrCreateDatasource()
        If not already created, a new datasource element will be created and returned. Otherwise, the first existing datasource element will be returned.
        Returns:
        the instance defined for the element datasource
      • removeAllDatasource

        DatasourcesDescriptor removeAllDatasource()
        Removes all datasource elements
        Returns:
        the current instance of DatasourceType
      • getOrCreateXaDatasource

        XaDatasourceType<DatasourcesDescriptor> getOrCreateXaDatasource()
        If not already created, a new xa-datasource element will be created and returned. Otherwise, the first existing xa-datasource element will be returned.
        Returns:
        the instance defined for the element xa-datasource
      • removeAllXaDatasource

        DatasourcesDescriptor removeAllXaDatasource()
        Removes all xa-datasource elements
        Returns:
        the current instance of XaDatasourceType
      • getOrCreateDrivers

        DriversType<DatasourcesDescriptor> getOrCreateDrivers()
        If not already created, a new drivers element with the given value will be created. Otherwise, the existing drivers element will be returned.
        Returns:
        a new or existing instance of DriversType
      • removeDrivers

        DatasourcesDescriptor removeDrivers()
        Removes the drivers element
        Returns:
        the current instance of DatasourcesDescriptor