genie
is a dependency injection solution inspired by Feather.See: Description
Interface | Description |
---|---|
BeanTransformer<E> |
Implementation shall provide the logic that can transform a bean instance (no type change).
|
ElementFilter<E> |
Implementation shall provide the logic that can filter a bean instance.
|
ElementLoader<E> |
An
ElementLoader is responsible for providing initial data to be loaded into a Collection type. |
GenericTypedBeanLoader<T> |
A
GenericTypedBeanLoader can be used to load instance of certain type with generic type parameters. |
GeniePlugin |
A
GeniePlugin can register it self to a genie instance |
InjectListener | |
Injector |
A generic Injector interface defines the contract a dependency injector like
Genie should provide. |
KeyExtractor<K,V> |
A
KeyExtractor can be used to extract or derive “key” from a value data. |
NamedProvider<T> |
A
NamedProvider can be used to get an instance with a given name. |
PostConstructProcessor<T> |
Define the logic that needs to be invoked on the bean before return back.
|
ScopeCache |
Provide function to retrieve bean from scoped cache.
|
ScopeCache.RequestScope |
Implementation of
ScopeCache.RequestScope shall provide access to bean instance stored in a request scope |
ScopeCache.SessionScope |
Implementation of
ScopeCache.RequestScope shall provide access to bean instance stored in a session scope |
ScopeCache.SingletonScope |
Implementation of
ScopeCache.SingletonScope provide access to bean instances stored in a singleton registry. |
ValueLoader<T> |
An
ValueLoader is used to load bean (value) in place. |
Class | Description |
---|---|
BeanSpec |
Specification of a bean to be injected.
|
CDIAdaptor | |
Genie | |
Genie.Binder<T> |
A
Binder is used in module configure method to define a custom binding. |
GuiceAdaptor | |
InjectListener.Adaptor | |
KeyExtractor.PropertyExtractor |
An implementation of
KeyExtractor that extract property (specified through hint parameter) from a java bean (data). |
Module | |
ValueLoader.Base<T> |
Enum | Description |
---|---|
ElementType |
Used in
AnnotatedWith and TypeOf annotation to specify the type of the element should be returned by TypedElementLoader and AnnotatedElementLoader respectively. |
Exception | Description |
---|---|
InjectException |
InjectException is thrown out when error occurred within dependency injection process |
Act genie
is a dependency injection solution inspired by Feather.
genie
support all features provided by Feather
and more:
Qualifier
annotationsScope
annotationsLoadCollection
annotationsLoadValue
annotationsPostConstruct
semanticcollection inject mechanism
value inject mechanism
configuration inject mechanism
Copyright © 2016–2018 OSGL (Open Source General Library). All rights reserved.