Class SpringBeanUtil

java.lang.Object
com.vaadin.spring.internal.SpringBeanUtil

public class SpringBeanUtil extends Object
  • 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 null if not bean of the given type has been defined