Skip to content

Commit

Permalink
EbeanHandler.getDataSource
Browse files Browse the repository at this point in the history
  • Loading branch information
caoli5288 committed Jul 6, 2020
1 parent ab25501 commit e01ff66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/mengcraft/simpleorm/EbeanHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ public void setHeartbeat(String heartbeat) {
this.heartbeat = heartbeat;
}

public DataSource getDataSource() {
Preconditions.checkNotNull(dataSource, "dataSource not initialized");
return dataSource;
}

/**
* @deprecated not very recommend to call this method manual, it will shutdown automatic while JVM down
*/
Expand Down

0 comments on commit e01ff66

Please sign in to comment.