Modifier and Type | Class and Description |
---|---|
protected static enum | TypeProxy.AbstractMethodErrorThrow
A stack manipulation that throws an abstract method error in case that a given super method cannot be invoked. |
public static class | TypeProxy.ForDefaultMethod
Creates a type proxy which delegates its super method calls to any invokable default method of a given interface and loads an instance of this proxy onto the operand stack. |
public static class | TypeProxy.ForSuperMethodByConstructor
Loads a type proxy onto the operand stack which is created by calling one of its constructors. |
public static class | TypeProxy.ForSuperMethodByReflectionFactory
Loads a type proxy onto the operand stack which is created by constructing a serialization constructor using
the Oracle JDK's |
public static interface | TypeProxy.InvocationFactory
An invocation factory is responsible for creating a special method invocation for any method that is to be invoked. |
protected class | TypeProxy.MethodCall
An implementation for a method call of a |
protected static enum | TypeProxy.SilentConstruction
An implementation of a silent construction of a given type by using the non-standardized
|
Modifier and Type | Field and Description |
---|---|
private final boolean | ignoreFinalizer
|
private final Implementation. | implementationTarget
The implementation target of the proxied type. |
public static final String | INSTANCE_FIELD
The name of the field that stores the delegation instance. |
private final TypeProxy. | invocationFactory
The invocation factory for creating special method invocations. |
private final TypeDescription | proxiedType
The type that is proxied, i.e. the original instrumented type this proxy is created for. |
public static final String | REFLECTION_METHOD
The name of the |
private final boolean | serializableProxy
Determines if the proxy should be serializable. |
Access | Constructor and Description |
---|---|
public | TypeProxy(TypeDescription
The type this proxy should implement which can either be a non-final class or an interface. proxiedType, Implementation.The implementation target this type proxy is created for. implementationTarget,The invocation factory for creating special method invocations. invocationFactory,true if any finalizer methods should be ignored for proxying.Determines if the proxy should be serializable. serializableProxy)Creates a new type proxy. |
Modifier and Type | Method and Description |
---|---|
public String | getSuffix()
Implements net. |
public DynamicType | make(String
The fully qualified binary name for this auxiliary type. The type should be in
the same package than the instrumented type this auxiliary type is providing services
to in order to allow package-private access. auxiliaryTypeName, ClassFileVersion The class file version the auxiliary class should be written in. classFileVersion, MethodAccessorFactory A factory for accessor methods. methodAccessorFactory)Implements net. |