Class NativeConfigurationUtils


  • public class NativeConfigurationUtils
    extends java.lang.Object
    Common utilities for native configuration processors.
    Author:
    Andy Clement
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NativeConfigurationUtils

        public NativeConfigurationUtils()
    • 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)