Annotation Interface SuperCall
Parameters that are annotated with this annotation will be assigned a proxy for calling the instrumented method's
super
implementation.
The proxy will both implement the
Callable
and the Runnable
interfaces
such that the annotated parameter must be assignable to any of those interfaces or be of the Object
type.- See Also:
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Determines if the injected proxy should invoke the default method to the intercepted method if a common super method invocation is not applicable.boolean
Assignsnull
to the parameter if it is impossible to invoke the super method or a possible dominant default method, if permitted.boolean
Determines if the generated proxy should beSerializable
.
-
Element Details
-
serializableProxy
boolean serializableProxyDetermines if the generated proxy should beSerializable
.- Returns:
true
if the generated proxy should beSerializable
.
- Default:
false
-
fallbackToDefault
boolean fallbackToDefaultDetermines 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.- Returns:
true
if the invocation should fall back to invoking the default method.
- Default:
true
-
nullIfImpossible
boolean nullIfImpossibleAssignsnull
to the parameter if it is impossible to invoke the super method or a possible dominant default method, if permitted.- Returns:
true
if anull
constant should be assigned to this parameter in case that a legal binding is impossible.
- Default:
false
-