| 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,
Object... modules) |
static Genie |
Genie.create(Object... modules)
Create a Genie instance with modules specified
|
static Genie |
Genie.createWithoutPlugins(Object... modules)
Create a Genie instance with modules specified
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<E> |
ElementLoader.load(Map<String,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 List<Object> |
ElementType.transform(List<Class<?>> classes,
Genie genie)
Transform a list of classes into required elements.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<T> |
TypedElementLoader.load(Map<String,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 |
Iterable<Object> |
AnnotatedElementLoader.load(Map<String,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(Class arrayClass,
Genie genie) |
Copyright © 2016–2018 OSGL (Open Source General Library). All rights reserved.