Package io.kubernetes.client.spring.aot
Class KubernetesBeanFactoryInitializationAotProcessor
java.lang.Object
io.kubernetes.client.spring.aot.KubernetesBeanFactoryInitializationAotProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor
public class KubernetesBeanFactoryInitializationAotProcessor
extends Object
implements org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor
GraalVM native images need to know about when you might reflectively work with types at runtime.
The Kubernetes Java client works with several types reflectively at runtime. This code uses the
third-party Reflections library to reflect upon all the code in your Spring Boot application or
in the official Kubernetes Java client that has
ApiModel, JsonAdapter, and
registers them. It also registers a few other specific handful of classes that should be
accounted for, in specific cases.- Author:
- Josh Long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.aot.BeanFactoryInitializationAotContributionprocessAheadOfTime(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
Constructor Details
-
KubernetesBeanFactoryInitializationAotProcessor
public KubernetesBeanFactoryInitializationAotProcessor()
-
-
Method Details
-
processAheadOfTime
public org.springframework.beans.factory.aot.BeanFactoryInitializationAotContribution processAheadOfTime(@NotNull org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) - Specified by:
processAheadOfTimein interfaceorg.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor
-