Class BinderFactory
java.lang.Object
com.qubitpi.ws.jersey.template.application.BinderFactory
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 Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull org.glassfish.hk2.utilities.Binder
Builds a hk2 Binder instance.
-
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)
-