Top Description Inners Fields Constructors Methods
com.google.inject.internal.aop

public final Class ClassDefining

extends Object
Class Inheritance
Imports
com.google.inject.internal.InternalFlags, .InternalFlags.CustomClassLoadingOption, java.util.logging.Logger

Entry-point for defining dynamically generated classes.
Author
[email protected] (Stuart McCulloch)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String
private static final Logger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static ClassDefiner
bindClassDefiner()

Binds the preferred ClassDefiner instance.

public static boolean
canDowncastToProxy(Class<?> hostClass)

Returns true if it's possible to downcast to proxies defined from the given host.

public static boolean
canLoadProxyByName(Class<?> hostClass)

Returns true if it's possible to load by name proxies defined from the given host.

public static Class<?>
define(Class<?> hostClass, byte[] bytecode)

Defines a new class relative to the host.

public static boolean
hasPackageAccess()

Returns true if the current class definer allows access to package-private members.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CLASS_DEFINING_UNSUPPORTEDback to summary
private static final String CLASS_DEFINING_UNSUPPORTED
loggerback to summary
private static final Logger logger

Constructor Detail

ClassDefiningback to summary
private ClassDefining()

Method Detail

bindClassDefinerback to summary
pack-priv static ClassDefiner bindClassDefiner()

Binds the preferred ClassDefiner instance.

canDowncastToProxyback to summary
public static boolean canDowncastToProxy(Class<?> hostClass)

Returns true if it's possible to downcast to proxies defined from the given host.

canLoadProxyByNameback to summary
public static boolean canLoadProxyByName(Class<?> hostClass)

Returns true if it's possible to load by name proxies defined from the given host.

defineback to summary
public static Class<?> define(Class<?> hostClass, byte[] bytecode) throws Exception

Defines a new class relative to the host.

hasPackageAccessback to summary
public static boolean hasPackageAccess()

Returns true if the current class definer allows access to package-private members.

com.google.inject.internal.aop back to summary

private Class ClassDefining.ClassDefinerHolder

extends Object
Class Inheritance
  • java.lang.Object
  • com.google.inject.internal.aop.ClassDefining.ClassDefinerHolder

Field Summary

Modifier and TypeField and Description
pack-priv static final ClassDefiner
pack-priv static final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final ClassDefiner INSTANCE
IS_UNSAFEback to summary
pack-priv static final boolean IS_UNSAFE

Constructor Detail

ClassDefinerHolderback to summary
private ClassDefinerHolder()