@Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface Input
public int sum(int i1, int i2);
can be proxied by a method defined as:
public int sum(@Input(int.class) OutputChannel<Integer> i1, int i2);
Note that the transfer mode is specifically chosen through the annotation mode attribute
(it's CHANNEL by default).
This annotation is used to decorate methods that are to be invoked in an asynchronous way.
-keepattributes RuntimeVisibleAnnotations
-keepclassmembers class ** {
@com.github.dm.jrt.annotation.Input *;
}
Created by davide-maestroni on 05/23/2015.| Modifier and Type | Required Element and Description |
|---|---|
Class<?> |
value
The parameter class.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Input.InputMode |
mode
The input transfer mode.
|
public abstract Class<?> value
public abstract Input.InputMode mode