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 ClassLoaders.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classCustom class loader that grants access to defineClassprivate static classprivate static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ChildClassDefiner.ChildLoaderchildLoader(ClassLoader hostLoader) Creates a child loader for the given host loaderClass<?> Defines a new class relative to the host.(package private) static <T> TdoPrivileged(PrivilegedAction<T> action) Utility method to remove doPrivileged ambiguity
-
Field Details
-
logger
-
-
Constructor Details
-
ChildClassDefiner
ChildClassDefiner()
-
-
Method Details
-
define
Description copied from interface:ClassDefinerDefines a new class relative to the host.- Specified by:
definein interfaceClassDefiner- Throws:
Exception
-
doPrivileged
Utility method to remove doPrivileged ambiguity -
childLoader
Creates a child loader for the given host loader
-