super
implementation.
The proxy will both implement the
java.util.concurrent.Callable
and the java.lang.Runnable
interfaces
such that the annotated parameter must be assignable to any of those interfaces or be of the java.lang.Object
type.
net.bytebuddy.implementation.MethodDelegation
, net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder
Modifier and Type | Class and Description |
---|---|
public static enum | SuperCall.Binder
A binder for handling the
|
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if the invocation should fall back to invoking the default method.Determines if the injected proxy should invoke the default method to the intercepted method if a common super method invocation is not applicable. |
public boolean | Returns: true if a null constant should be assigned to this parameter in case that a legal binding is impossible.Assigns |
public boolean |
fallbackToDefault | back to summary |
---|---|
public boolean fallbackToDefault() Determines if the injected proxy should invoke the default method to the intercepted method if a common super method invocation is not applicable. For this to be possible, the default method must not be ambiguous.
|
nullIfImpossible | back to summary |
---|---|
public boolean nullIfImpossible() Assigns
|
serializableProxy | back to summary |
---|---|
public boolean serializableProxy() Determines if the generated proxy should be
|
net.bytebuddy.implementation.bind.annotation.SuperCall
annotation.
TargetMethodAnnotationDrivenBinder
Modifier and Type | Field and Description |
---|---|
private static final MethodDescription. | FALLBACK_TO_DEFAULT
A description of the |
public static final SuperCall. | INSTANCE
The singleton instance. |
private static final MethodDescription. | NULL_IF_IMPOSSIBLE
A description of the |
private static final MethodDescription. | SERIALIZABLE_PROXY
A description of the |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public MethodDelegationBinder. | bind(AnnotationDescription.
The annotation that was cause for the delegation to this argument binder. annotation,The intercepted source method. source, ParameterDescription Tge target parameter that is subject to be bound to
intercepting the target, Implementation.source method.The target of the current implementation that is subject to this binding. implementationTarget,An assigner that can be used for applying the binding. assigner, Assigner.The typing to apply. typingImplements net. |
public Class | getHandledType()
The annotation type that is handled by this parameter binder.
|
public static SuperCall. | |
public static SuperCall. |
FALLBACK_TO_DEFAULT | back to summary |
---|---|
private static final MethodDescription. A description of the |
INSTANCE | back to summary |
---|---|
public static final SuperCall. The singleton instance. |
NULL_IF_IMPOSSIBLE | back to summary |
---|---|
private static final MethodDescription. A description of the |
SERIALIZABLE_PROXY | back to summary |
---|---|
private static final MethodDescription. A description of the |
Binder | back to summary |
---|---|
private Binder() |
bind | back to summary |
---|---|
public MethodDelegationBinder. Implements net. Doc from net. Creates a parameter binding for the given target parameter.
|
getHandledType | back to summary |
---|---|
public Class The annotation type that is handled by this parameter binder.
|
valueOf | back to summary |
---|---|
public static SuperCall. |
values | back to summary |
---|---|
public static SuperCall. |