Annotation Interface Conduit.Implementation

Enclosing class:
Conduit

@Retention(RUNTIME) @Target(METHOD) public static @interface Conduit.Implementation
Marks a method that returns the binary name of the class implementing this conduit's target, or null if it cannot be told.

Meant for functional interfaces, which carry no state of their own. At a call site they are a lambda, a method reference or a constructor call, and this is how to find out what that points at. For MyRenderer::new it returns "com.example.MyRenderer".

@Conduit("com.example.RendererFactory")
public interface RendererFactory {
    @Conduit.Implementation
    String implementation();
}