se.jbee.inject.bind
Class Binder
Object
se.jbee.inject.bind.Binder
- Direct Known Subclasses:
- Binder.TargetedBinder
public class Binder
- extends Object
The default implementation of a fluent binder interface that provides a lot of utility methods to
improve readability and keep binding compact.
- Author:
- Jan Bernitt (jan@jbee.se)
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
final Binder.RootBinder root
Binder
Binder(Binder.RootBinder root,
Bind bind)
create
public static Binder.RootBinder create(Bind bind)
bind
Bind bind()
arraybind
public <E> Binder.TypedElementBinder<E> arraybind(Class<E[]> type)
autobind
public <T> Binder.TypedBinder<T> autobind(Class<T> type)
autobind
public <T> Binder.TypedBinder<T> autobind(Type<T> type)
bind
public <T> Binder.TypedBinder<T> bind(Class<T> type)
bind
public <T> Binder.TypedBinder<T> bind(Instance<T> instance)
bind
public <T> Binder.TypedBinder<T> bind(Name name,
Class<T> type)
bind
public <T> Binder.TypedBinder<T> bind(Name name,
Type<T> type)
bind
public <T> Binder.TypedBinder<T> bind(Type<T> type)
construct
public void construct(Class<?> type)
construct
public void construct(Instance<?> instance)
construct
public void construct(Name name,
Class<?> type)
multibind
public <T> Binder.TypedBinder<T> multibind(Class<T> type)
multibind
public <T> Binder.TypedBinder<T> multibind(Instance<T> instance)
multibind
public <T> Binder.TypedBinder<T> multibind(Name name,
Class<T> type)
multibind
public <T> Binder.TypedBinder<T> multibind(Name name,
Type<T> type)
multibind
public <T> Binder.TypedBinder<T> multibind(Type<T> type)
starbind
public <T> Binder.TypedBinder<T> starbind(Class<T> type)
configbind
public <T,C> Binder.ConfigBinder<T> configbind(Class<T> type)
configbind
public <T,C> Binder.ConfigBinder<T> configbind(Type<T> type)
on
protected Binder on(Bind bind)
implicitBindToConstructor
protected final <I> void implicitBindToConstructor(Class<I> impl)
implicitBindToConstructor
protected final <I> void implicitBindToConstructor(Instance<I> instance)
implicit
protected final Binder implicit()
with
protected Binder with(Target target)