Skip to content

Instantly share code, notes, and snippets.

@aasikka

aasikka/Self

Created Jul 2, 2018
Embed
What would you like to do?
@Model(adaptables = SlingHttpServletRequest.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)
public class ContactUsModel {
//Accessing the resource that is adapted to ContactusModel
@Self
protected Resource resource;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.