Package com.google.inject.internal
Class BytecodeGen
java.lang.Object
com.google.inject.internal.BytecodeGen
Utility methods for circular proxies, faster reflection, and method interception.
This class makes heavy use of Function and BiFunction types when interacting
with generated fast-classes and enhanced proxies. This is a deliberate design decision to avoid
using Guice-specific types in the generated classes. This means generated classes can be defined
in the same ClassLoader as their host class without needing access to Guice's own ClassLoader. (In other words it removes any need for bridge ClassLoaders.)
- Author:
- mcculls@gmail.com (Stuart McCulloch), jessewilson@google.com (Jesse Wilson)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder of enhanced classes. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCircularProxy(Object object) Returns true if the given object is a circular proxy.
-
Field Details
-
ENHANCER_BY_GUICE_MARKER
- See Also:
-
FASTCLASS_BY_GUICE_MARKER
- See Also:
-
-
Constructor Details
-
BytecodeGen
public BytecodeGen()
-
-
Method Details
-
isCircularProxy
Returns true if the given object is a circular proxy.
-