Class BinderFactory

java.lang.Object
com.qubitpi.ws.jersey.template.application.BinderFactory

@Immutable @ThreadSafe public class BinderFactory extends Object
A binder factory builds a custom binder for the Jersey application.

The factory makes the component object instance that will eventually be passed to ResourceConfig.register(Object).

  • Constructor Details

    • BinderFactory

      public BinderFactory()
  • Method Details

    • buildBinder

      @NotNull public @NotNull org.glassfish.hk2.utilities.Binder buildBinder()
      Builds a hk2 Binder instance.

      This binder should bind all relevant resources for runtime dependency injection.

      Returns:
      a binder instance that will be registered by putting as a parameter to ResourceConfig.register(Object)