a code generator for generating codes like express middleware
- add annotation to your interface class
import io.insight.Middleware;
@Middleware
public interface ExampleService {
Integer foo(Long a, Long b) throws IOException;
void bar(Integer c);
}
- compile your code
ExampleServiceMiddleware and ExampleServiceChain will be generated
-
use
ExampleServiceChainas your default implementation, expose it to your user -
your user can implement
ExampleServiceMiddlewareand add them toExampleServiceChain
see example