Skip to content

Commit 09ea442

Browse files
committed
Polishing.
Move hints into AOT package to align with other hints. Reduce visibility. See: #3025 Original pull request: #3026
1 parent 3f2f013 commit 09ea442

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Diff for: src/main/java/org/springframework/data/web/aot/hint/WebRuntimeHints.java renamed to src/main/java/org/springframework/data/web/aot/WebRuntimeHints.java

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.web.aot.hint;
16+
package org.springframework.data.web.aot;
1717

1818
import org.springframework.aot.hint.RuntimeHints;
1919
import org.springframework.aot.hint.RuntimeHintsRegistrar;
@@ -22,16 +22,17 @@
2222
import org.springframework.lang.Nullable;
2323

2424
/**
25+
* {@link RuntimeHintsRegistrar} providing hints for web usage.
26+
*
2527
* @author Christoph Strobl
2628
* @since 3.2.3
2729
*/
28-
public class WebRuntimeHints implements RuntimeHintsRegistrar {
30+
class WebRuntimeHints implements RuntimeHintsRegistrar {
2931

3032
@Override
3133
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
3234

33-
hints.reflection().registerType(TypeReference.of("org.springframework.data.domain.Unpaged"), hint -> {
34-
hint.onReachableType(PageModule.class);
35-
});
35+
hints.reflection().registerType(TypeReference.of("org.springframework.data.domain.Unpaged"),
36+
hint -> hint.onReachableType(PageModule.class));
3637
}
3738
}

Diff for: src/main/resources/META-INF/spring/aot.factories

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor=\
44
org.springframework.aot.hint.RuntimeHintsRegistrar=\
55
org.springframework.data.repository.aot.hint.RepositoryRuntimeHints,\
66
org.springframework.data.querydsl.aot.QuerydslHints,\
7-
org.springframework.data.web.aot.hint.WebRuntimeHints
7+
org.springframework.data.web.aot.WebRuntimeHints
88

99
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor=\
10-
org.springframework.data.aot.AuditingBeanRegistrationAotProcessor
10+
org.springframework.data.aot.AuditingBeanRegistrationAotProcessor

0 commit comments

Comments
 (0)