se.jbee.inject.bind
Class Binder.TypedBinder<T>
Object
se.jbee.inject.bind.Binder.TypedBinder<T>
- Direct Known Subclasses:
- Binder.TypedElementBinder
- Enclosing class:
- Binder
public static class Binder.TypedBinder<T>
- extends Object
|
Method Summary |
(package private) Bind |
bind()
|
protected void |
expand(Object value)
|
protected Type<T> |
getType()
|
protected Binder.TypedBinder<T> |
on(Bind bind)
|
protected Binder.TypedBinder<T> |
onMulti()
|
|
to(Class<I> impl)
|
void |
to(Configuring<?> configuration)
|
void |
to(Constructor<? extends T> constructor,
Parameter<?>... parameters)
|
void |
to(Factory<? extends T> factory)
|
|
to(Instance<I> instance)
|
|
to(Name name,
Class<I> type)
|
|
to(Name name,
Type<I> type)
|
(package private) void |
to(Object instance,
Method method,
Parameter<?>[] parameters)
|
void |
to(Supplier<? extends T> supplier)
|
protected void |
to(Supplier<? extends T> supplier,
BindingType type)
|
void |
to(T constant)
|
void |
to(T constant1,
T... constants)
|
void |
to(T constant1,
T constant2)
|
void |
to(T constant1,
T constant2,
T constant3)
|
void |
toConstructor()
|
void |
toConstructor(Class<? extends T> impl,
Parameter<?>... parameters)
|
void |
toConstructor(Parameter<?>... parameters)
|
void |
toMacro(Module macro)
|
|
toParametrized(Class<I> impl)
|
|
toSupplier(Class<I> impl)
|
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resource
protected final Resource<T> resource
Binder.TypedBinder
Binder.TypedBinder(Bind bind,
Instance<T> instance)
Binder.TypedBinder
Binder.TypedBinder(Bind bind,
Resource<T> resource)
to
public <I extends T> void to(Class<I> impl)
to
public void to(Constructor<? extends T> constructor,
Parameter<?>... parameters)
to
void to(Object instance,
Method method,
Parameter<?>[] parameters)
toMacro
public void toMacro(Module macro)
expand
protected final void expand(Object value)
to
public void to(Factory<? extends T> factory)
to
public void to(Supplier<? extends T> supplier)
to
public final void to(T constant)
to
public final void to(T constant1,
T constant2)
to
public final void to(T constant1,
T constant2,
T constant3)
to
public final void to(T constant1,
T... constants)
toConstructor
public void toConstructor()
toConstructor
public void toConstructor(Class<? extends T> impl,
Parameter<?>... parameters)
toConstructor
public void toConstructor(Parameter<?>... parameters)
to
public <I extends T> void to(Name name,
Class<I> type)
to
public <I extends T> void to(Name name,
Type<I> type)
to
public <I extends T> void to(Instance<I> instance)
to
public void to(Configuring<?> configuration)
toParametrized
public <I extends T> void toParametrized(Class<I> impl)
toSupplier
public <I extends Supplier<? extends T>> void toSupplier(Class<I> impl)
to
protected final void to(Supplier<? extends T> supplier,
BindingType type)
bind
final Bind bind()
getType
protected final Type<T> getType()
on
protected final Binder.TypedBinder<T> on(Bind bind)
onMulti
protected final Binder.TypedBinder<T> onMulti()