public class CompositeBinder extends AbstractBinder
Binder
is able to recursively register all injection binding descriptions in all installed binders.
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Binder> |
installed |
Modifier | Constructor and Description |
---|---|
private |
CompositeBinder(java.util.Collection<Binder> installed)
Creates a new
CompositeBinder and adds the collection of binders as candidates to install. |
Modifier and Type | Method and Description |
---|---|
void |
configure()
Automatically installed all provided binders.
|
static AbstractBinder |
wrap(Binder... binders)
Creates
CompositeBinder with provided binders. |
static AbstractBinder |
wrap(java.util.Collection<Binder> binders)
Creates
CompositeBinder with provided binders. |
bind, bind, bind, bind, bindAsContract, bindAsContract, bindAsContract, bindFactory, bindFactory, bindFactory, createManagedInstanceProvider, getBindings, install, setInjectionManager
private java.util.Collection<Binder> installed
private CompositeBinder(java.util.Collection<Binder> installed)
CompositeBinder
and adds the collection of binders as candidates to install.installed
- all binder ready to install.public static AbstractBinder wrap(java.util.Collection<Binder> binders)
CompositeBinder
with provided binders.binders
- provided binder to install as a collection.public static AbstractBinder wrap(Binder... binders)
CompositeBinder
with provided binders.binders
- provided binder to install as an array.public void configure()
configure
in class AbstractBinder