| Package | Description |
|---|---|
| org.osgl.inject |
Act
genie is a dependency injection solution inspired by Feather. |
| Modifier and Type | Method and Description |
|---|---|
protected <T> Genie.Binder<T> |
Module.bind(Class<T> type) |
Genie.Binder<T> |
Genie.Binder.doNotFireEvent()
Turn off the
forceFireEvent flag. |
Genie.Binder<T> |
Genie.Binder.forceFireEvent()
Turn on
forceFireEvent flag. |
Genie.Binder<T> |
Genie.Binder.in(Class<? extends Annotation> scope)
Constraint the binder with a scope annotation class.
|
Genie.Binder<T> |
Genie.Binder.named(String name)
Constraint the binding with a name.
|
Genie.Binder<T> |
Genie.Binder.qualifiedWith(Annotation... qualifiers)
Add qualifier annotation constraints to this binder
|
Genie.Binder<T> |
Genie.Binder.qualifiedWith(Class<? extends Annotation>... qualifiers)
Add qualifier annotation constraints to this binder
|
Genie.Binder<T> |
Genie.Binder.to(Class<? extends T> impl)
Bind this
Binder to a specific implementation. |
Genie.Binder<T> |
Genie.Binder.to(Constructor<? extends T> constructor)
Bind this binder to a constructor
|
Genie.Binder<T> |
Genie.Binder.to(javax.inject.Provider<? extends T> provider)
Bind this
Binder to a provider. |
Genie.Binder<T> |
Genie.Binder.to(T instance)
Bind this
Binder to a specific instance |
Genie.Binder<T> |
Genie.Binder.toConstructor(Class<? extends T> implement,
Class<?>... args)
Bind this instance to a constructor specified by class and constructor arguments.
|
Genie.Binder<T> |
Genie.Binder.withAnnotation(Annotation... annotations)
Deprecated.
|
Genie.Binder<T> |
Genie.Binder.withAnnotation(Class<? extends Annotation>... annotations)
Deprecated.
|
Copyright © 2016–2018 OSGL (Open Source General Library). All rights reserved.