Deprecate support for theme

As seen in gh-28868, the support for Themes is now deprecated as of
Spring Framework 6.0 and will be removed in a future release.

Closes gh-29114
This commit is contained in:
Nheyll
2022-09-09 09:12:52 +02:00
committed by Brian Clozel
parent 5e1b5af0e0
commit 058109315d
33 changed files with 120 additions and 50 deletions

View File

@@ -24,7 +24,9 @@ import org.springframework.lang.Nullable;
*
* @author Jean-Pierre Pawlak
* @author Juergen Hoeller
* @deprecated as of 6.0, with no concrete replacement
*/
@Deprecated
public interface HierarchicalThemeSource extends ThemeSource {
/**

View File

@@ -28,7 +28,9 @@ import org.springframework.context.MessageSource;
* @since 17.06.2003
* @see ThemeSource
* @see org.springframework.web.servlet.ThemeResolver
* @deprecated as of 6.0, with no direct replacement
*/
@Deprecated
public interface Theme {
/**

View File

@@ -26,7 +26,9 @@ import org.springframework.lang.Nullable;
* @author Jean-Pierre Pawlak
* @author Juergen Hoeller
* @see Theme
* @deprecated as of 6.0, with no direct replacement
*/
@Deprecated
public interface ThemeSource {
/**

View File

@@ -31,7 +31,9 @@ import org.springframework.ui.context.ThemeSource;
* @author Juergen Hoeller
* @since 1.2.4
* @see UiApplicationContextUtils
* @deprecated as of 6.0, with no direct replacement
*/
@Deprecated
public class DelegatingThemeSource implements HierarchicalThemeSource {
@Nullable

View File

@@ -42,7 +42,9 @@ import org.springframework.ui.context.ThemeSource;
* @see #setBasenamePrefix
* @see java.util.ResourceBundle
* @see org.springframework.context.support.ResourceBundleMessageSource
* @deprecated as of 6.0, with no direct replacement
*/
@Deprecated
public class ResourceBundleThemeSource implements HierarchicalThemeSource, BeanClassLoaderAware {
protected final Log logger = LogFactory.getLog(getClass());

View File

@@ -26,7 +26,9 @@ import org.springframework.util.Assert;
*
* @author Juergen Hoeller
* @since 17.06.2003
* @deprecated as of 6.0, with no concrete replacement
*/
@Deprecated
public class SimpleTheme implements Theme {
private final String name;

View File

@@ -31,7 +31,9 @@ import org.springframework.ui.context.ThemeSource;
* @author Jean-Pierre Pawlak
* @author Juergen Hoeller
* @since 17.06.2003
* @deprecated as of 6.0, with no direct replacement
*/
@Deprecated
public abstract class UiApplicationContextUtils {
/**