Skip to content

spacedragon/java-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-middleware

a code generator for generating codes like express middleware

How to use

  1. 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);
}
  1. compile your code

ExampleServiceMiddleware and ExampleServiceChain will be generated

  1. use ExampleServiceChain as your default implementation, expose it to your user

  2. your user can implement ExampleServiceMiddleware and add them to ExampleServiceChain

see example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages