| Package | Description |
|---|---|
| org.osgl.inject |
Act
genie is a dependency injection solution inspired by Feather |
| org.osgl.inject.loader | |
| org.osgl.inject.provider |
This package includes a set of Genie built-in
providers for common used interfaces |
| 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 |
Genie.Binder.register(Genie genie) |
void |
CDIAdaptor.register(Genie genie) |
abstract List<Object> |
ElementType.transform(List<Class<?>> classes,
Genie genie) |
| Modifier and Type | Method and Description |
|---|---|
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 |
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 |
| 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 © 2017. All Rights Reserved.