commit
d782e763a6
|
@ -29,6 +29,8 @@ import java.util.stream.StreamSupport;
|
||||||
|
|
||||||
import kotlin.jvm.JvmClassMappingKt;
|
import kotlin.jvm.JvmClassMappingKt;
|
||||||
import kotlin.reflect.KClass;
|
import kotlin.reflect.KClass;
|
||||||
|
import org.apache.commons.logging.Log;
|
||||||
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
import org.springframework.aot.hint.ExecutableMode;
|
import org.springframework.aot.hint.ExecutableMode;
|
||||||
import org.springframework.aot.hint.MemberCategory;
|
import org.springframework.aot.hint.MemberCategory;
|
||||||
|
@ -59,6 +61,8 @@ import org.springframework.util.ReflectionUtils;
|
||||||
*/
|
*/
|
||||||
public class BindableRuntimeHintsRegistrar implements RuntimeHintsRegistrar {
|
public class BindableRuntimeHintsRegistrar implements RuntimeHintsRegistrar {
|
||||||
|
|
||||||
|
private static final Log logger = LogFactory.getLog(BindableRuntimeHintsRegistrar.class);
|
||||||
|
|
||||||
private final Bindable<?>[] bindables;
|
private final Bindable<?>[] bindables;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -89,7 +93,12 @@ public class BindableRuntimeHintsRegistrar implements RuntimeHintsRegistrar {
|
||||||
*/
|
*/
|
||||||
public void registerHints(RuntimeHints hints) {
|
public void registerHints(RuntimeHints hints) {
|
||||||
for (Bindable<?> bindable : this.bindables) {
|
for (Bindable<?> bindable : this.bindables) {
|
||||||
new Processor(bindable).process(hints.reflection());
|
try {
|
||||||
|
new Processor(bindable).process(hints.reflection());
|
||||||
|
}
|
||||||
|
catch (Exception ex) {
|
||||||
|
logger.debug("Skipping hints for " + bindable, ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue