public final class Beans
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Beans.Initializer
Initializer for
Beans. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
lookUpBean(java.lang.Class<T> type)
Looks up a bean of the given type in the
BeansProvider of this application. |
static <T> T |
lookUpBean(java.lang.String name,
java.lang.Class<T> type)
Looks up the bean with the given name and type in the
BeansProvider of this application. |
static <T> java.util.List<T> |
lookUpBeans(java.lang.Class<T> type)
Looks up all beans of the given type in the
BeansProvider of this application. |
public static <T> T lookUpBean(java.lang.String name,
java.lang.Class<T> type)
BeansProvider of this application.T - the bean-typename - the name of the desired beantype - the type of the desired beannullBeansProvider.lookUpBean(String, Class)public static <T> T lookUpBean(java.lang.Class<T> type)
BeansProvider of this application.T - the bean-typetype - the type of the desired beannullBeansProvider.lookUpBean(Class)public static <T> java.util.List<T> lookUpBeans(java.lang.Class<T> type)
BeansProvider of this application.T - the bean-typetype - the type of the desired beansBeansProvider.lookUpBeans(Class)