Package com.google.inject.internal.aop
Class ChildClassDefiner
java.lang.Object
com.google.inject.internal.aop.ChildClassDefiner
- All Implemented Interfaces:
ClassDefiner
ClassDefiner
that defines classes using child ClassLoader
s.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Custom class loader that grants access to defineClassprivate static class
private static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ChildClassDefiner.ChildLoader
childLoader
(ClassLoader hostLoader) Creates a child loader for the given host loaderClass<?>
Defines a new class relative to the host.(package private) static <T> T
doPrivileged
(PrivilegedAction<T> action) Utility method to remove doPrivileged ambiguity
-
Field Details
-
logger
-
-
Constructor Details
-
ChildClassDefiner
ChildClassDefiner()
-
-
Method Details
-
define
Description copied from interface:ClassDefiner
Defines a new class relative to the host.- Specified by:
define
in interfaceClassDefiner
- Throws:
Exception
-
doPrivileged
Utility method to remove doPrivileged ambiguity -
childLoader
Creates a child loader for the given host loader
-