public interface DependencyInjectionListener
Listens for injections into instances of type listenTo()
. Useful for performing further injections, post-injection initialization, and more.
Modifier and Type | Method and Description |
---|---|
java.lang.Class[] |
listenTo()
Returns the classes this listener is interested in
|
void |
onInjection(java.lang.Object bean,
org.osgl.inject.BeanSpec beanSpec)
Invoked once an instance has been created.
|
java.lang.Class[] listenTo()
Returns the classes this listener is interested in
void onInjection(java.lang.Object bean, org.osgl.inject.BeanSpec beanSpec)
Invoked once an instance has been created.
If DependencyInjector
inject a field and the generic type
of the field is kind of ParameterizedType
, then the type parameters of that generic type will be passed to the listener
bean
- instance to be returned by DependencyInjector
beanSpec
- the spec about the bean instanceCopyright © 2014–2017 ActFramework. All rights reserved.