Package com.vaadin.copilot
Class SpringIntegration
java.lang.Object
com.vaadin.copilot.SpringIntegration
Provides Spring related helpers for copilot. Depends on Spring classes and
cannot be directly imported
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> getApplicationClass(com.vaadin.flow.server.VaadinServletContext context) Returns the Spring Boot application class of the given context.static List<SpringBridge.ServiceMethodInfo> getEndpoints(com.vaadin.flow.server.VaadinServletContext context) static List<SpringBridge.ServiceMethodInfo> getFlowUIServices(com.vaadin.flow.server.VaadinServletContext context) static Optional<SpringBridge.H2Info> getH2Info(com.vaadin.flow.server.VaadinServletContext context) static StringgetPropertyValue(com.vaadin.flow.server.VaadinServletContext context, String property) Returns the value of the given property from the Spring environment of the given context.static SpringBridge.VersionInfoGets version information for Spring Boot and related libraries.static org.springframework.web.context.WebApplicationContextgetWebApplicationContext(com.vaadin.flow.server.VaadinServletContext context) static BooleanisViewSecurityEnabled(com.vaadin.flow.server.VaadinServletContext context) Returns whether Flow view security is enabled in the given context.
-
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. SeeSpringBridge- Parameters:
context- the Vaadin servlet contextproperty- 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
Returns the Spring Boot application class of the given context. SeeSpringBridge- Parameters:
context- the Vaadin servlet context- Returns:
- the Spring Boot application class or null if not found
-
isViewSecurityEnabled
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
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)
-