Created
July 2, 2018 16:26
-
-
Save aasikka/fe5e1edfb15c43238b15151ca8e4ff0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Model(adaptables = Resource.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL) | |
public class ContactUsModel { | |
private Style currentStyle; | |
private Designer designer; | |
@PostConstruct | |
protected void init() { | |
// Getting the currentStyle from the Designer.class | |
designer = this.resourceResolver.adaptTo(Designer.class); | |
if (designer != null) { | |
currentStyle = designer.getStyle(resource); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
すごい