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 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 BooleanisViewSecurityEnabled(com.vaadin.flow.server.VaadinServletContext context) Returns whether Spring Security is enabled in the given context SeeSpringBridge
-
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
-
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 Spring Security is enabled in the given context SeeSpringBridge- Parameters:
context- the Vaadin servlet context- Returns:
- true if Spring Security is enabled, false otherwise
-