Class NativeConfigurationUtils
- java.lang.Object
-
- org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeConfigurationUtils
-
public class NativeConfigurationUtils extends java.lang.Object
Common utilities for native configuration processors.- Author:
- Andy Clement
-
-
Constructor Summary
Constructors Constructor Description NativeConfigurationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
collectReferenceTypesUsed(java.lang.reflect.Type type, java.util.Set<java.lang.Class<?>> collector)
static java.util.Set<java.lang.Class<?>>
collectTypesInSignature(java.lang.Class<?> clazz)
static java.util.Set<java.lang.Class<?>>
collectTypesInSignature(java.lang.reflect.Field field)
Determine all the reference types used in a field signature.static java.util.Set<java.lang.Class<?>>
collectTypesInSignature(java.lang.reflect.Method controllerMethod)
Determine all the reference types used in a method signature.
-
-
-
Method Detail
-
collectTypesInSignature
public static java.util.Set<java.lang.Class<?>> collectTypesInSignature(java.lang.reflect.Field field)
Determine all the reference types used in a field signature. This includes navigating generic type references.- Parameters:
field
- the field to check- Returns:
- a set of the reference types used in the field signature
-
collectTypesInSignature
public static java.util.Set<java.lang.Class<?>> collectTypesInSignature(java.lang.reflect.Method controllerMethod)
Determine all the reference types used in a method signature. This includes navigating generic type references. This includes the return type and parameter types.- Parameters:
controllerMethod
- the method to check- Returns:
- a set of the reference types used in the method signature
-
collectTypesInSignature
public static java.util.Set<java.lang.Class<?>> collectTypesInSignature(java.lang.Class<?> clazz)
-
collectReferenceTypesUsed
public static void collectReferenceTypesUsed(java.lang.reflect.Type type, java.util.Set<java.lang.Class<?>> collector)
-
-