Skip to content

Commit 094d25e

Browse files
committed
Polishing.
Improve hints type naming. Make runtime hints package-private. See #449
1 parent 4217352 commit 094d25e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/main/java/org/springframework/data/keyvalue/aot/DataKeyValueRuntimeHints.java renamed to src/main/java/org/springframework/data/keyvalue/aot/KeyValueRuntimeHints.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,22 @@
2727
import org.springframework.lang.Nullable;
2828

2929
/**
30+
* {@link RuntimeHintsRegistrar} for KeyValue.
31+
*
3032
* @author Christoph Strobl
3133
* @since 3.0
3234
*/
33-
public class DataKeyValueRuntimeHints implements RuntimeHintsRegistrar {
35+
class KeyValueRuntimeHints implements RuntimeHintsRegistrar {
3436

3537
@Override
3638
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
3739

3840
// REFLECTION
39-
hints.reflection()
40-
.registerTypes(Arrays.asList(TypeReference.of(org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository.class),
41-
TypeReference.of(KeyValuePartTreeQuery.class)),
42-
hint -> hint.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, MemberCategory.INVOKE_DECLARED_METHODS));
41+
hints.reflection().registerTypes(
42+
Arrays.asList(
43+
TypeReference.of(org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository.class),
44+
TypeReference.of(KeyValuePartTreeQuery.class)),
45+
hint -> hint.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, MemberCategory.INVOKE_DECLARED_METHODS));
4346

4447
// PROXIES
4548
RuntimeHintsUtils.registerAnnotation(hints, KeySpace.class);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
org.springframework.aot.hint.RuntimeHintsRegistrar=\
2-
org.springframework.data.keyvalue.aot.DataKeyValueRuntimeHints
2+
org.springframework.data.keyvalue.aot.KeyValueRuntimeHints

0 commit comments

Comments
 (0)