In package com.eden.orchid.api.theme

public final class ThemeServiceImpl extends Object implements ThemeService

since: v1.0.0 public final

Constructors

ThemeServiceImpl(GlobalAssetHolder globalAssetHolder, Provider<T> themesProvider, String defaultTheme, Provider<T> adminThemesProvider, String defaultAdminTheme) public
Constructor Annotations:
@Inject

Parameters:
  • GlobalAssetHolder globalAssetHolder
  • Provider themesProvider
  • @Named(
        value="theme")
    String defaultTheme
  • Provider adminThemesProvider
  • @Named(
        value="adminTheme")
    String defaultAdminTheme

Methods

void initialize(OrchidContext context) public
Method Annotations:
@Override

Parameters:
void onStart() public
Method Annotations:
@Override

GlobalAssetHolder getGlobalAssetHolder() public
Method Annotations:
@Override

Theme getTheme() public
Method Annotations:
@Override

Theme getDefaultTheme() public
Method Annotations:
@Override

Theme findTheme(String theme) public
Method Annotations:
@Override

Parameters:
  • String theme
void pushTheme(Theme theme) public
Method Annotations:
@Override

Parameters:
void pushTheme(Theme theme, Map<K, V> themeOptions) public
Method Annotations:
@Override

Parameters:
  • Theme theme
  • Map themeOptions
void popTheme() public
Method Annotations:
@Override

void clearThemes() public
Method Annotations:
@Override

Theme doWithTheme(Object theme, Runnable cb) public
Method Annotations:
@Override

Parameters:
  • Object theme
  • Runnable cb
AdminTheme getAdminTheme() public
Method Annotations:
@Override

AdminTheme getDefaultAdminTheme() public
Method Annotations:
@Override

AdminTheme findAdminTheme(String theme) public
Method Annotations:
@Override

Parameters:
  • String theme
void pushAdminTheme(AdminTheme theme) public
Method Annotations:
@Override

Parameters:
void pushAdminTheme(AdminTheme theme, Map<K, V> themeOptions) public
Method Annotations:
@Override

Parameters:
void popAdminTheme() public
Method Annotations:
@Override

void clearAdminThemes() public
Method Annotations:
@Override