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(com.vaadin.flow.server.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
    • getWebApplicationContext

      public static org.springframework.web.context.WebApplicationContext getWebApplicationContext(com.vaadin.flow.server.VaadinServletContext context)
    • getApplicationClass

      public static Class<?> getApplicationClass(com.vaadin.flow.server.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(com.vaadin.flow.server.VaadinServletContext context)
      Returns whether Flow view security is enabled in the given context.
      Parameters:
      context - the Vaadin servlet context
      Returns:
      true if Flow view security is enabled, false otherwise
    • getEndpoints

      public static List<SpringBridge.ServiceMethodInfo> getEndpoints(com.vaadin.flow.server.VaadinServletContext context)
    • getFlowUIServices

      public static List<SpringBridge.ServiceMethodInfo> getFlowUIServices(com.vaadin.flow.server.VaadinServletContext context)
    • getVersionInfo

      public static SpringBridge.VersionInfo getVersionInfo()
      Gets version information for Spring Boot and related libraries.
      Returns:
      version information
    • getH2Info

      public static Optional<SpringBridge.H2Info> getH2Info(com.vaadin.flow.server.VaadinServletContext context)