Skip to content

Commit

Permalink
feat(AssembleMp): add default implementation for afterInvoke method
Browse files Browse the repository at this point in the history
  • Loading branch information
Createsequence committed Jul 14, 2024
1 parent 679c58f commit f1863ad
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,8 @@ protected OrmAssembleAnnotation<AssembleMp> getStandardAnnotation(
*/
public interface DataSourceSwitcher {

DataSourceSwitcher DO_NOTING = new DataSourceSwitcher() {
@Override
public void beforeInvoke(String dataSource) {
// do nothing
}
@Override
public void afterInvoke(String dataSource) {
// do nothing
}
DataSourceSwitcher DO_NOTING = dataSource -> {
// do nothing
};

/**
Expand All @@ -180,7 +173,9 @@ public void afterInvoke(String dataSource) {
*
* @param dataSource data source name
*/
void afterInvoke(String dataSource);
default void afterInvoke(String dataSource) {
// do nothing
}
}

@RequiredArgsConstructor
Expand Down

0 comments on commit f1863ad

Please sign in to comment.