Package com.vaadin.spring.internal
Class SpringBeanUtil
java.lang.Object
com.vaadin.spring.internal.SpringBeanUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcreateManagedBeanIfAvailable(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.
-
Method Details
-
createManagedBeanIfAvailable
public 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.- Type Parameters:
T- the type of bean- Parameters:
cls- the type of bean to create- Returns:
- a bean of the given type or
nullif not bean of the given type has been defined
-