org.wildfly.swarm.datasources

## Interface DatasourceArchive

-     public interface DatasourceArchive

  A simplistic archive to allow deployment-based creation of datasources.

  While not the recommended method for deploying datasources, this archive type helps with the creation of WildFly-specific `-ds.xml` files within an archive. It can be driver by exactly the same API for creating datasources through `DatasourcesFraction` configuration

  Author:
    Bob McWhirter
  See Also:
    `DatasourcesFraction`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `DatasourceArchive` | `dataSource(DataSource ds)` Create a configured datasource
    `DatasourceArchive` | `dataSource(String key, DataSourceConsumer consumer)` Create an configure a datasource.

- - ### Method Detail

    - #### dataSource

          DatasourceArchive dataSource(String key,
                                       DataSourceConsumer consumer)

      Create an configure a datasource.
      Parameters:
        `key` - The key of the datasource.
        `consumer` - The configuring consumer.
      Returns:
        This archive.

    - #### dataSource

          DatasourceArchive dataSource(DataSource ds)

      Create a configured datasource
      Parameters:
        `ds` - The completely configured datasource.
      Returns:
        This archive.

Copyright © 2017 JBoss by Red Hat. All rights reserved.