public interface DatasourceArchive extends org.jboss.shrinkwrap.api.Assignable, org.jboss.shrinkwrap.api.Archive<DatasourceArchive>
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
DatasourcesFraction| Modifier and Type | Method and Description |
|---|---|
DatasourceArchive |
dataSource(org.wildfly.swarm.config.datasources.DataSource ds)
Create a configured datasource
|
DatasourceArchive |
dataSource(String key,
org.wildfly.swarm.config.datasources.DataSourceConsumer consumer)
Create an configure a datasource.
|
add, add, add, add, add, add, add, addAsDirectories, addAsDirectories, addAsDirectory, addAsDirectory, addHandlers, contains, contains, delete, delete, filter, get, get, getAsType, getAsType, getAsType, getAsType, getAsType, getAsType, getContent, getContent, getId, getName, merge, merge, merge, merge, merge, merge, move, move, shallowCopy, shallowCopy, toString, toString, toString, writeToDatasourceArchive dataSource(String key, org.wildfly.swarm.config.datasources.DataSourceConsumer consumer)
key - The key of the datasource.consumer - The configuring consumer.DatasourceArchive dataSource(org.wildfly.swarm.config.datasources.DataSource ds)
ds - The completely configured datasource.Copyright © 2018 JBoss by Red Hat. All rights reserved.