com.vaadin.copilot.
Class 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 See
SpringBridge
-
Constructor Details
-
SpringIntegration
public SpringIntegration()
-
-
Method Details
-
getPropertyValue
Returns the value of the given property from the Spring environment of the given context. See
SpringBridge
Parameters:
context
- the Vaadin servlet contextproperty
- the property nameReturns:
the property value or null if not found
-
getApplicationClass
Returns the Spring Boot application class of the given context. See
SpringBridge
Parameters:
context
- the Vaadin servlet contextReturns:
the Spring Boot application class or null if not found
-
isViewSecurityEnabled
Returns whether Spring Security is enabled in the given context See
SpringBridge
Parameters:
context
- the Vaadin servlet contextReturns:
true if Spring Security is enabled, false otherwise
-