public class SpringBeanUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createManagedBeanIfAvailable(org.springframework.context.ApplicationContext applicationContext,
Class<T> cls)
Creates a managed bean of the given type (not a subtype) if such a bean
has been defined.
|
public static <T> T createManagedBeanIfAvailable(org.springframework.context.ApplicationContext applicationContext,
Class<T> cls)
T - the type of beancls - the type of bean to createnull if not bean of the
given type has been definedCopyright © 2017 Vaadin Ltd. All Rights Reserved.