| 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(java.lang.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(java.lang.Class<? extends java.lang.annotation.Annotation> scope)
Constraint the binder with a scope annotation class.
|
Genie.Binder<T> |
Genie.Binder.named(java.lang.String name)
Constraint the binding with a name.
|
Genie.Binder<T> |
Genie.Binder.qualifiedWith(java.lang.annotation.Annotation... qualifiers)
Add qualifier annotation constraints to this binder
|
Genie.Binder<T> |
Genie.Binder.qualifiedWith(java.lang.Class<? extends java.lang.annotation.Annotation>... qualifiers)
Add qualifier annotation constraints to this binder
|
Genie.Binder<T> |
Genie.Binder.to(java.lang.Class<? extends T> impl)
Bind this
Binder to a specific implementation. |
Genie.Binder<T> |
Genie.Binder.to(java.lang.reflect.Constructor<? extends T> constructor)
Bind this binder to a constructor
|
Genie.Binder<T> |
Genie.Binder.to(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(java.lang.Class<? extends T> implement,
java.lang.Class<?>... args)
Bind this instance to a constructor specified by class and constructor arguments.
|
Genie.Binder<T> |
Genie.Binder.withAnnotation(java.lang.annotation.Annotation... annotations)
Deprecated.
|
Genie.Binder<T> |
Genie.Binder.withAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
Deprecated.
|
Copyright © 2016–2017 OSGL (Open Source General Library). All rights reserved.