@Documented @Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface DefaultCall
Modifier and Type | Optional Element and Description |
---|---|
boolean |
serializableProxy
Determines if the generated proxy should be
Serializable . |
Class<?> |
targetType
If this parameter is not explicitly set, a parameter with the
DefaultCall is only bound to a
source method if this source method directly represents an unambiguous, invokable default method. |
public abstract Class<?> targetType
DefaultCall
is only bound to a
source method if this source method directly represents an unambiguous, invokable default method. On the other
hand, if a method is not defined unambiguously by an interface, not setting this parameter will exclude
the target method with the annotated parameter from a binding to the source method.
If this parameter is however set to an explicit interface type, a default method is always invoked on this given type as long as this type defines a method with a compatible signature. If this is not the case, the target method with the annotated parameter is not longer considered as a possible binding candidate of a source method.
void
type encodes an implicit resolution.public abstract boolean serializableProxy
Serializable
.true
if the generated proxy should be Serializable
.Copyright © 2014–2016. All rights reserved.