Polishing.

Improve hints type naming. Make runtime hints package-private.

See #449
This commit is contained in:
Mark Paluch
2022-08-17 09:31:13 +02:00
parent 421735261c
commit 094d25ef77
2 changed files with 9 additions and 6 deletions

View File

@@ -27,19 +27,22 @@ import org.springframework.data.keyvalue.repository.query.KeyValuePartTreeQuery;
import org.springframework.lang.Nullable;
/**
* {@link RuntimeHintsRegistrar} for KeyValue.
*
* @author Christoph Strobl
* @since 3.0
*/
public class DataKeyValueRuntimeHints implements RuntimeHintsRegistrar {
class KeyValueRuntimeHints implements RuntimeHintsRegistrar {
@Override
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
// REFLECTION
hints.reflection()
.registerTypes(Arrays.asList(TypeReference.of(org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository.class),
TypeReference.of(KeyValuePartTreeQuery.class)),
hint -> hint.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, MemberCategory.INVOKE_DECLARED_METHODS));
hints.reflection().registerTypes(
Arrays.asList(
TypeReference.of(org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository.class),
TypeReference.of(KeyValuePartTreeQuery.class)),
hint -> hint.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, MemberCategory.INVOKE_DECLARED_METHODS));
// PROXIES
RuntimeHintsUtils.registerAnnotation(hints, KeySpace.class);