public interface Launcher<E>
| Modifier and Type | Method and Description |
|---|---|
<P> P |
getBean(java.lang.Class<P> clazz)
Returns a bean by class name.
|
<P> P |
getBean(java.lang.String qualifier)
Returns a bean by qualifier.
|
E |
getContext()
Returns the DI container context.
|
<P> P |
registerAndGetBean(java.lang.Class<? extends P> type,
java.lang.String id,
Scope scope)
Registers a Class in context and returns a managed bean.
|
E getContext()
<P> P getBean(java.lang.Class<P> clazz)
clazz, - the class of requested bean,
- P is the type of requested bean<P> P getBean(java.lang.String qualifier)
qualifier, - the qualifier of requested bean,
- P is the type of requested bean<P> P registerAndGetBean(java.lang.Class<? extends P> type,
java.lang.String id,
Scope scope)
type, - the class of requested beanid, - the id of requested beanscope, - The requested bean scope,
- P is the type of requested bean