Class ThemeRegistry

java.lang.Object
org.springframework.shell.style.ThemeRegistry

public class ThemeRegistry extends Object
Registry which stores Theme's with its name.
  • Constructor Details

    • ThemeRegistry

      public ThemeRegistry()
  • Method Details

    • get

      public Theme get(String name)
      Gets a theme from a registry.
      Parameters:
      name - the theme name
      Returns:
      a theme
    • register

      public void register(Theme theme)
      Register a theme.
      Parameters:
      theme - the theme
    • getThemeNames

      public Set<String> getThemeNames()
      Gets all theme names registered.
      Returns:
      theme names