| Package | Description |
|---|---|
| org.osgl.inject |
Act
genie is a dependency injection solution inspired by Feather. |
| org.osgl.inject.loader |
Defines loader classes.
|
| org.osgl.inject.provider |
Define Genie built-in
providers for commonly used interfaces including and not limited to the following: |
| Modifier and Type | Method and Description |
|---|---|
static Genie |
Genie.create(InjectListener listener,
java.lang.Object... modules) |
static Genie |
Genie.create(java.lang.Object... modules)
Create a Genie instance with modules specified
|
static Genie |
Genie.createWithoutPlugins(java.lang.Object... modules)
Create a Genie instance with modules specified
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<E> |
ElementLoader.load(java.util.Map<java.lang.String,java.lang.Object> options,
BeanSpec container,
Genie genie)
Provide element data to be loaded.
|
void |
GuiceAdaptor.register(Genie genie) |
void |
GeniePlugin.register(Genie genie)
Implementation shall register to a Genie instance
|
void |
CDIAdaptor.register(Genie genie) |
void |
Genie.Binder.register(Genie genie)
Register this binder to
Genie |
abstract java.util.List<java.lang.Object> |
ElementType.transform(java.util.List<java.lang.Class<?>> classes,
Genie genie)
Transform a list of classes into required elements.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<T> |
TypedElementLoader.load(java.util.Map<java.lang.String,java.lang.Object> options,
BeanSpec container,
Genie genie)
This method will load instances of all public and non-abstract classes that implements/extends the interface/class specified as
value option |
java.lang.Iterable<java.lang.Object> |
AnnotatedElementLoader.load(java.util.Map<java.lang.String,java.lang.Object> options,
BeanSpec container,
Genie genie)
This method will load instances of all public and non-abstract classes that has been annotated by annotation class specified as
value in options |
| Modifier and Type | Field and Description |
|---|---|
protected Genie |
ArrayProvider.genie |
| Modifier and Type | Method and Description |
|---|---|
static ArrayProvider |
ArrayProvider.of(BeanSpec beanSpec,
Genie genie) |
static ArrayProvider |
ArrayProvider.of(java.lang.Class arrayClass,
Genie genie) |
Copyright © 2016–2017 OSGL (Open Source General Library). All rights reserved.