Class BinderUtils


  • public class BinderUtils
    extends Object
    • Constructor Detail

      • BinderUtils

        public BinderUtils()
    • Method Detail

      • bindHttpApi

        public static <S,​A> void bindHttpApi​(com.google.inject.Binder binder,
                                                   Class<A> api)
        adds an explicit binding for async by parsing its annotations.
        Type Parameters:
        S - sync interface that blocks
        A - api type with http annotations
        Parameters:
        binder - guice binder
        api - type with http annotations