com.azure.spring.messaging.eventhubs.implementation.SpringMessagingAzureEventHubsRuntimeHints Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.messaging.eventhubs.implementation;
import org.springframework.aot.hint.MemberCategory;
import org.springframework.aot.hint.ReflectionHints;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
import java.util.stream.Stream;
class SpringMessagingAzureEventHubsRuntimeHints implements RuntimeHintsRegistrar {
@Override
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
ReflectionHints reflectionHints = hints.reflection();
Stream.of(
"com.azure.spring.messaging.eventhubs.core.properties.CommonProperties",
"com.azure.spring.messaging.eventhubs.core.properties.ConsumerProperties",
"com.azure.spring.messaging.eventhubs.core.properties.EventHubsContainerProperties",
"com.azure.spring.messaging.eventhubs.core.properties.NamespaceProperties",
"com.azure.spring.messaging.eventhubs.core.properties.ProcessorProperties",
"com.azure.spring.messaging.eventhubs.core.properties.ProducerProperties"
)
.forEach(typeName -> reflectionHints.registerTypeIfPresent(classLoader, typeName,
builder -> builder.withMembers(MemberCategory.INVOKE_DECLARED_METHODS)));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy