Package io.helidon.integrations.cdi.jpa
Interface PersistenceUnitInfoBean.DataSourceProvider
- Enclosing class:
- PersistenceUnitInfoBean
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface
indicating that its implementations can supply
DataSource
s.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetDataSource
(boolean jta, boolean useDefaultJta, String dataSourceName) Supplies aDataSource
.
-
Method Details
-
getDataSource
Supplies aDataSource
.Implementations of this method are permitted to return
null
.- Parameters:
jta
- iftrue
, theDataSource
that is returned may be enrolled in JTA-compliant transactionsuseDefaultJta
- iftrue
, and if thejta
parameter value istrue
, the supplieddataSourceName
may be ignored and a defaultDataSource
eligible for enrolling in JTA-compliant transactions will be returned if possibledataSourceName
- the name of theDataSource
to return; may benull
; ignored if bothjta
anduseDefaultJta
aretrue
- Returns:
- an appropriate
DataSource
, ornull
- See Also:
-