Package org.jboss.jca.common.metadata.ds
Class DatasourcesImpl
- java.lang.Object
-
- org.jboss.jca.common.metadata.ds.DatasourcesImpl
-
- All Implemented Interfaces:
Serializable,DataSources,JCAMetadata,ValidatableMetadata
public class DatasourcesImpl extends Object implements DataSources
A DatasourcesImpl.- Author:
- Stefano Maestri
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.jca.common.api.metadata.ds.DataSources
DataSources.Tag
-
-
Constructor Summary
Constructors Constructor Description DatasourcesImpl(List<DataSource> datasource, List<XaDataSource> xaDataSource, Map<String,Driver> drivers)Create a new DatasourcesImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<DataSource>getDataSource()Get the datasource.DrivergetDriver(String name)List<Driver>getDrivers()List<XaDataSource>getXaDataSource()Get the xaDataSource.inthashCode()StringtoString()voidvalidate()
-
-
-
Constructor Detail
-
DatasourcesImpl
public DatasourcesImpl(List<DataSource> datasource, List<XaDataSource> xaDataSource, Map<String,Driver> drivers) throws ValidateException
Create a new DatasourcesImpl.- Parameters:
datasource- datasourcexaDataSource- xaDataSourcedrivers- drivers- Throws:
ValidateException- ValidateException
-
-
Method Detail
-
getDataSource
public final List<DataSource> getDataSource()
Get the datasource.- Specified by:
getDataSourcein interfaceDataSources- Returns:
- the datasource.
-
getXaDataSource
public final List<XaDataSource> getXaDataSource()
Get the xaDataSource.- Specified by:
getXaDataSourcein interfaceDataSources- Returns:
- the xaDataSource.
-
validate
public void validate() throws ValidateException- Specified by:
validatein interfaceValidatableMetadata- Throws:
ValidateException
-
getDriver
public Driver getDriver(String name)
- Specified by:
getDriverin interfaceDataSources
-
getDrivers
public List<Driver> getDrivers()
- Specified by:
getDriversin interfaceDataSources
-
-