Class CompositeBinder
java.lang.Object
org.glassfish.jersey.internal.inject.AbstractBinder
org.glassfish.jersey.internal.inject.CompositeBinder
- All Implemented Interfaces:
Binder
Utility class which is able to install several binders and register them as a whole.
Binder
is able to recursively register all injection binding descriptions in all installed binders.
- Author:
- Petr Bouda
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Automatically installed all provided binders.static AbstractBinder
wrap
(Collection<Binder> binders) CreatesCompositeBinder
with provided binders.static AbstractBinder
CreatesCompositeBinder
with provided binders.Methods inherited from class org.glassfish.jersey.internal.inject.AbstractBinder
bind, bind, bind, bindAsContract, bindAsContract, bindAsContract, bindFactory, bindFactory, bindFactory, createManagedInstanceProvider, getBindings, install
-
Method Details
-
wrap
CreatesCompositeBinder
with provided binders.- Parameters:
binders
- provided binder to install as a collection.- Returns:
- composite binder.
-
wrap
CreatesCompositeBinder
with provided binders.- Parameters:
binders
- provided binder to install as an array.- Returns:
- composite binder.
-
configure
public void configure()Automatically installed all provided binders.- Specified by:
configure
in classAbstractBinder
-