Class Enhanced


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isEnhanced​(java.lang.Class<?> clazz)
      Returns true if this is a class that Guice enhanced with AOP functionality.
      static <T> java.util.Optional<java.lang.Class<? super T>> unenhancedClass​(java.lang.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.
      • Methods inherited from class java.lang.Object

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

      • isEnhanced

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

        public static <T> java.util.Optional<java.lang.Class<? super T>> unenhancedClass​(java.lang.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.