Class Enhanced


  • public final class Enhanced
    extends Object
    Utilities for checking if classes are enhanced and/or getting the original un-enhanced class.
    Since:
    6.0
    • Method Detail

      • isEnhanced

        public static boolean isEnhanced​(Class<?> clazz)
        Returns true if this is a class that Guice enhanced with AOP functionality.
      • unenhancedClass

        public static <T> Optional<Class<? super T>> unenhancedClass​(Class<T> clazz)
        If the input class is a class that isEnhanced(java.lang.Class<?>) is true for, returns the un-enhanced version of the class. Otherwise returns an empty optional.