Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,25 @@ public void setMetaClass(MetaClass metaClass) {

/**
* Initialize the theme capability.
*
* @deprecated since 7.1, for removal in 8.0. Spring's theme support ({@link ThemeSource},
* {@link UiApplicationContextUtils#initThemeSource}) is deprecated in Spring Boot 3 and
* removed in Spring Boot 4. This method will be removed in Grails 8.0.0.
*/
@Deprecated(since = "7.1", forRemoval = true)
@Override
protected void onRefresh() {
themeSource = UiApplicationContextUtils.initThemeSource(this);
}

/**
* Return the {@link Theme} instance for the given theme name.
*
* @deprecated since 7.1, for removal in 8.0. Spring's theme support ({@link ThemeSource},
* {@link Theme}) is deprecated in Spring Boot 3 and removed in Spring Boot 4.
* This method will be removed in Grails 8.0.0.
*/
@Deprecated(since = "7.1", forRemoval = true)
public Theme getTheme(String themeName) {
return themeSource.getTheme(themeName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
* A WebApplicationContext that extends StaticApplicationContext to allow for programmatic
* configuration at runtime. The code is adapted from StaticWebApplicationContext.
*
* <p>Note: The {@link ThemeSource} interface implementation is deprecated since Grails 7.1 and
* will be removed in Grails 8.0.0. Spring's theme support is deprecated in Spring Boot 3 and
* removed in Spring Boot 4.
*
* @author Graeme
* @since 0.3
*/
Expand Down
Loading