Class SpringIntegration

java.lang.Object
com.vaadin.copilot.SpringIntegration

public class SpringIntegration extends Object
Provides Spring related helpers for copilot. Depends on Spring classes and cannot be directly imported
  • Constructor Details

    • SpringIntegration

      public SpringIntegration()
  • Method Details

    • getPropertyValue

      public static String getPropertyValue(VaadinServletContext context, String property)
      Returns the value of the given property from the Spring environment of the given context. See SpringBridge
      Parameters:
      context - the Vaadin servlet context
      property - the property name
      Returns:
      the property value or null if not found
    • getApplicationClass

      public static Class<?> getApplicationClass(VaadinServletContext context)
      Returns the Spring Boot application class of the given context. See SpringBridge
      Parameters:
      context - the Vaadin servlet context
      Returns:
      the Spring Boot application class or null if not found
    • isViewSecurityEnabled

      public static Boolean isViewSecurityEnabled(VaadinServletContext context)
      Returns whether Spring Security is enabled in the given context See SpringBridge
      Parameters:
      context - the Vaadin servlet context
      Returns:
      true if Spring Security is enabled, false otherwise