Package com.google.inject.internal.aop
Class ClassDefining
java.lang.Object
com.google.inject.internal.aop.ClassDefining
Entry-point for defining dynamically generated classes.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ClassDefiner
Binds the preferredClassDefiner
instance.static boolean
canDowncastToProxy
(Class<?> hostClass) Returns true if it's possible to downcast to proxies defined from the given host.static boolean
canLoadProxyByName
(Class<?> hostClass) Returns true if it's possible to load by name proxies defined from the given host.static Class<?>
Defines a new class relative to the host.static boolean
Returns true if the current class definer allows access to package-private members.
-
Field Details
-
logger
-
CLASS_DEFINING_UNSUPPORTED
- See Also:
-
-
Constructor Details
-
ClassDefining
private ClassDefining()
-
-
Method Details
-
define
Defines a new class relative to the host.- Throws:
Exception
-
hasPackageAccess
public static boolean hasPackageAccess()Returns true if the current class definer allows access to package-private members. -
canLoadProxyByName
Returns true if it's possible to load by name proxies defined from the given host. -
canDowncastToProxy
Returns true if it's possible to downcast to proxies defined from the given host. -
bindClassDefiner
Binds the preferredClassDefiner
instance.
-