Annotation Type SuperCall
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public @interface SuperCallParameters that are annotated with this annotation will be assigned a proxy for calling the instrumented method'ssuperimplementation.
The proxy will both implement theCallableand theRunnableinterfaces such that the annotated parameter must be assignable to any of those interfaces or be of theObjecttype.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanfallbackToDefaultDetermines if the injected proxy should invoke the default method to the intercepted method if a common super method invocation is not applicable.booleannullIfImpossibleAssignsnullto the parameter if it is impossible to invoke the super method or a possible dominant default method, if permitted.booleanserializableProxyDetermines if the generated proxy should beSerializable.
-
-
-
-
fallbackToDefault
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.- Returns:
trueif the invocation should fall back to invoking the default method.
- Default:
- true
-
-
-
nullIfImpossible
boolean nullIfImpossible
Assignsnullto the parameter if it is impossible to invoke the super method or a possible dominant default method, if permitted.- Returns:
trueif anullconstant should be assigned to this parameter in case that a legal binding is impossible.
- Default:
- false
-
-