| Modifier and Type | Method and Description |
|---|---|
Genie.Binder<T> |
doNotFireEvent() |
Genie.Binder<T> |
forceFireEvent() |
Genie.Binder<T> |
in(Class<? extends Annotation> scope)
Specify the bind belongs to a certain scope
|
Genie.Binder<T> |
named(String name) |
void |
register(Genie genie) |
Genie.Binder<T> |
to(Class<? extends T> impl) |
Genie.Binder<T> |
to(Constructor<? extends T> constructor) |
Genie.Binder<T> |
to(javax.inject.Provider<? extends T> provider) |
Genie.Binder<T> |
to(T instance) |
Genie.Binder<T> |
toConstructor(Class<? extends T> implement,
Class<?>... args) |
Genie.Binder<T> |
withAnnotation(Annotation... annotations) |
Genie.Binder<T> |
withAnnotation(Class<? extends Annotation>... annotations)
Specify the bind that should attach to bean that has been annotated with annotation(s).
|
public Genie.Binder<T> named(String name)
public Genie.Binder<T> to(Class<? extends T> impl)
public Genie.Binder<T> to(T instance)
public Genie.Binder<T> to(javax.inject.Provider<? extends T> provider)
public Genie.Binder<T> to(Constructor<? extends T> constructor)
public Genie.Binder<T> toConstructor(Class<? extends T> implement, Class<?>... args)
public Genie.Binder<T> in(Class<? extends Annotation> scope)
Specify the bind belongs to a certain scope
scope - the scope annotation classpublic Genie.Binder<T> withAnnotation(Class<? extends Annotation>... annotations)
Specify the bind that should attach to bean that has been annotated with annotation(s). Usually the annotation specified in the parameter should be qualifiers
annotations - an array of annotation classesQualifierpublic Genie.Binder<T> withAnnotation(Annotation... annotations)
public Genie.Binder<T> forceFireEvent()
public Genie.Binder<T> doNotFireEvent()
public void register(Genie genie)
Copyright © 2017. All Rights Reserved.