| 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 | Field and Description |
|---|---|
protected BeanSpec |
ValueLoader.Base.spec |
| Modifier and Type | Method and Description |
|---|---|
BeanSpec |
BeanSpec.componentSpec() |
static BeanSpec |
BeanSpec.of(Class<?> clazz,
Injector injector) |
static BeanSpec |
BeanSpec.of(Field field,
Injector injector) |
static BeanSpec |
BeanSpec.of(Type type,
Annotation[] paramAnnotations,
Injector injector) |
static BeanSpec |
BeanSpec.of(Type type,
Annotation[] paramAnnotations,
Injector injector,
int modifiers) |
static BeanSpec |
BeanSpec.of(Type type,
Annotation[] paramAnnotations,
String name,
Injector injector) |
static BeanSpec |
BeanSpec.of(Type type,
Annotation[] paramAnnotations,
String name,
Injector injector,
int modifiers) |
static BeanSpec |
BeanSpec.of(Type type,
Injector injector) |
BeanSpec |
BeanSpec.toList()
Convert an array bean spec to a list bean spec.
|
| Modifier and Type | Method and Description |
|---|---|
org.osgl.Osgl.Function<E,E> |
BeanTransformer.filter(Map<String,Object> options,
BeanSpec bean)
Create a filter function with the hint and options specified.
|
org.osgl.Osgl.Function<E,Boolean> |
ElementFilter.filter(Map<String,Object> options,
BeanSpec container)
Create a filter function with the hint and options specified.
|
<T> T |
Genie.get(BeanSpec beanSpec) |
<T> T |
ScopeCache.get(BeanSpec target)
Get a bean from the cache defined in the scope.
|
void |
ValueLoader.init(Map<String,Object> options,
BeanSpec spec)
Initialize the value loader with options and bean spec.
|
void |
ValueLoader.Base.init(Map options,
BeanSpec spec) |
void |
InjectListener.injected(Object bean,
BeanSpec beanSpec) |
void |
InjectListener.Adaptor.injected(Object bean,
BeanSpec beanSpec) |
T |
GenericTypedBeanLoader.load(BeanSpec spec)
Returns an instance matches the spec.
|
Iterable<E> |
ElementLoader.load(Map<String,Object> options,
BeanSpec container,
Genie genie)
Provide element data to be loaded.
|
<T> void |
ScopeCache.put(BeanSpec target,
T bean)
Put a bean instance into the cache associated with the class key specified.
|
boolean |
Genie.subjectToInject(BeanSpec beanSpec) |
| Modifier and Type | Method and Description |
|---|---|
org.osgl.Osgl.Function<T,Boolean> |
TypedElementLoader.filter(Map<String,Object> options,
BeanSpec container)
This method returns a predicate function that test the bean instance against the class specified by
hint. |
org.osgl.Osgl.Function |
AnnotatedElementLoader.filter(Map<String,Object> options,
BeanSpec container)
Returns a predicate check if an object has annotation as specified as
hint |
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 BeanSpec |
ArrayProvider.listSpec |
| Modifier and Type | Method and Description |
|---|---|
static ArrayProvider |
ArrayProvider.of(BeanSpec beanSpec,
Genie genie) |
Copyright © 2016–2018 OSGL (Open Source General Library). All rights reserved.