|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContainerAccessor
The ContainerAccessor allows access to the underlying plugin container (e.g. spring).
| Method Summary | ||
|---|---|---|
|
createBean(java.lang.Class<T> clazz)
Will ask the container to instantiate a bean of the given class and does inject all constructor defined dependencies. |
|
|
getBean(java.lang.String id)
Retrieves a bean by name from the container. |
|
|
getBeansOfType(java.lang.Class<T> interfaceClass)
Gets all the beans that implement a given interface |
|
|
injectBean(T bean)
Injects an existing bean instance with any dependencies via setters or private field injection |
|
| Method Detail |
|---|
<T> T createBean(java.lang.Class<T> clazz)
clazz - the Class to instantiate. Cannot be null.
<T> T injectBean(T bean)
T - The bean typebean - The instantiated bean to inject<T> T getBean(java.lang.String id)
id - the id of the container bean, cannot be null
<T> java.util.Collection<T> getBeansOfType(java.lang.Class<T> interfaceClass)
T - The target interface typeinterfaceClass - The interface class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||