-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add option to provide a custom DataSource
- Loading branch information
1 parent
b041658
commit 2ac6d84
Showing
2 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...src/main/java/com/github/kagkarlsson/scheduler/boot/autoconfigure/DataSourceSupplier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.github.kagkarlsson.scheduler.boot.autoconfigure; | ||
|
||
import javax.sql.DataSource; | ||
|
||
@FunctionalInterface | ||
public interface DataSourceSupplier { | ||
/** | ||
* Supplies an instance of {@link DataSource}. | ||
* | ||
* @return The {@link DataSource} to be used by the scheduler. | ||
*/ | ||
DataSource dataSource(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters