forked from muxiangqiu/multitenant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加OrgDataSourceCreateEvent,公司注册,给公司创建一个数据源,此事件为数据源创建完成后触发,通过此事件,程序员可以…
…对数据源对象自定义修改其属性
- Loading branch information
kevin
committed
Apr 25, 2018
1 parent
b269ae7
commit a5cb152
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/main/java/org/malagu/multitenant/listener/OrgDataSourceCreateEvent.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,20 @@ | ||
package org.malagu.multitenant.listener; | ||
|
||
import javax.sql.DataSource; | ||
|
||
import org.springframework.context.ApplicationEvent; | ||
|
||
/** | ||
* 公司注册,给公司创建一个数据源,此事件为数据源创建完成后触发,通过此事件,程序员可以对数据源对象自定义修改其属性 | ||
* @author Kevin Yang (mailto:[email protected]) | ||
* @since 2018年4月25日 | ||
*/ | ||
public class OrgDataSourceCreateEvent extends ApplicationEvent { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public OrgDataSourceCreateEvent(DataSource dataSouce) { | ||
super(dataSouce); | ||
} | ||
|
||
} |
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