RESTEasy直接使用ResourceMethodRegistry来做request

ResourceMethodRegistry可以不启动http服务直接调用resteasy内核。ResourceMethodRegistry的使用方法可以在OptionalInjectionTest中看到用法:

ResourceMethodRegistry的初始化:

下面是Holder

分析上面的call chain,首先是ResourceMethodRegistry的类图:

ResourceMethodRegistry获得ResourceInvoker

上面的invoke(...)方法得到CompletionStage<? extends Response>。关于CompletionStage,可以参考这些篇文章:

My Github Page: https://github.com/liweinan

Powered by Jekyll and Theme by solid

If you have any question want to ask or find bugs regarding with my blog posts, please report it here:
https://github.com/liweinan/liweinan.github.io/issues