Class NativeConfigurationUtils


  • public class NativeConfigurationUtils
    extends Object
    Common utilities for native configuration processors.
    Author:
    Andy Clement
    • Constructor Detail

      • NativeConfigurationUtils

        public NativeConfigurationUtils()
    • Method Detail

      • collectTypesInSignature

        public static Set<Class<?>> collectTypesInSignature​(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 Set<Class<?>> collectTypesInSignature​(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 Set<Class<?>> collectTypesInSignature​(Class<?> clazz)
      • collectReferenceTypesUsed

        public static void collectReferenceTypesUsed​(Type type,
                                                     Set<Class<?>> collector)