Skip to content

Commit 298493d

Browse files
committed
Introduce Finder interface for boot 3.0 upgrade
1 parent 8bb5d8d commit 298493d

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

components/sbm-recipes-boot-upgrade/src/main/java/org/springframework/sbm/boot/upgrade_27_30/checks/DatabaseDriverGaeFinder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
import java.util.stream.Stream;
3030

3131
@Component
32-
public class DatabaseDriverGaeFinder {
32+
public class DatabaseDriverGaeFinder implements Sbm30_Finder<Set<ApplicationModule>> {
3333

34+
@Override
3435
@NotNull
3536
public Set<ApplicationModule> findMatches(ProjectContext context) {
3637
return context.getApplicationModules()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright 2021 - 2022 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.sbm.boot.upgrade_27_30.checks;
18+
19+
import org.jetbrains.annotations.NotNull;
20+
import org.springframework.sbm.build.api.ApplicationModule;
21+
import org.springframework.sbm.engine.context.ProjectContext;
22+
23+
import java.util.Set;
24+
25+
public interface Sbm30_Finder<T> {
26+
@NotNull <T> T findMatches(ProjectContext context);
27+
}

0 commit comments

Comments
 (0)