Package com.google.inject.util
Class Enhanced
- java.lang.Object
-
- com.google.inject.util.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isEnhanced(Class<?> clazz)
Returns true if this is a class that Guice enhanced with AOP functionality.static <T> Optional<Class<? super T>>
unenhancedClass(Class<T> clazz)
If the input class is a class thatisEnhanced(java.lang.Class<?>)
is true for, returns the un-enhanced version of the class.
-
-
-
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 thatisEnhanced(java.lang.Class<?>)
is true for, returns the un-enhanced version of the class. Otherwise returns an empty optional.
-
-