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
(VaadinServletContext context) Returns the Spring Boot application class of the given context.static String
getPropertyValue
(VaadinServletContext context, String property) Returns the value of the given property from the Spring environment of the given context.static Boolean
Returns whether Spring Security is enabled in the given context SeeSpringBridge
-
Constructor Details
-
SpringIntegration
public SpringIntegration()
-
-
Method Details
-
getPropertyValue
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
-