Annotation Type Assisted


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface Assisted
    Marks a type with a single abstract method to be automatically created by the assisted type registration extension. To qualify the type must be:
    • annotated with the Assisted annotation
    • an abstract class or interface with a single abstract method (a SAM type)
    Furthermore, the single abstract method must have:
    • a concrete, non void, non primitive return type
    • no unresolvable type variables
    • arguments exactly matching the arguments in the returned type, both their types and names