Annotation Interface Pipe
A target method parameter that is annotated with this annotation allows to forward an intercepted method invocation to another instance. The instance to which a method call is forwarded must be of the most specific type that declares the intercepted method on the intercepted type.
Unfortunately, before Java 8, the Java Class Library does not define any interface type which takes a single
Object type and returns another Object type. For this reason, a
Pipe.Binder needs to be installed explicitly
and registered on a MethodDelegation. The installed type is allowed to be an
interface without any super types that declares a single method which maps an Object type to
a another Object type as a result value. It is however not prohibited to use generics in the
process.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classATargetMethodAnnotationDrivenBinder.ParameterBinderfor binding thePipeannotation. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanDetermines if the generated proxy should beSerializable.
-
Element Details
-
serializableProxy
boolean serializableProxyDetermines if the generated proxy should beSerializable.- Returns:
trueif the generated proxy should beSerializable.
- Default:
false
-