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
A DatasourcesImpl.
- Author:
- Stefano Maestri
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.jca.common.api.metadata.ds.DataSources
DataSources.Tag -
Constructor Summary
ConstructorsConstructorDescriptionDatasourcesImpl(List<DataSource> datasource, List<XaDataSource> xaDataSource, Map<String, Driver> drivers) Create a new DatasourcesImpl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal List<DataSource> Get the datasource.final List<XaDataSource> Get the xaDataSource.inthashCode()toString()voidvalidate()
-
Constructor Details
-
DatasourcesImpl
public DatasourcesImpl(List<DataSource> datasource, List<XaDataSource> xaDataSource, Map<String, Driver> drivers) throws ValidateExceptionCreate a new DatasourcesImpl.- Parameters:
datasource- datasourcexaDataSource- xaDataSourcedrivers- drivers- Throws:
ValidateException- ValidateException
-
-
Method Details
-
getDataSource
Get the datasource.- Specified by:
getDataSourcein interfaceDataSources- Returns:
- the datasource.
-
getXaDataSource
Get the xaDataSource.- Specified by:
getXaDataSourcein interfaceDataSources- Returns:
- the xaDataSource.
-
hashCode
public int hashCode() -
equals
-
toString
-
validate
- Specified by:
validatein interfaceValidatableMetadata- Throws:
ValidateException
-
getDriver
- Specified by:
getDriverin interfaceDataSources
-
getDrivers
- Specified by:
getDriversin interfaceDataSources
-