Created
November 29, 2017 23:44
-
-
Save auniverseaway/c8b7b9013b5ecdd9c790253d194d17b6 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
package org.millr.stuff; | |
@Model( | |
adaptables = { SlingHttpServletRequest.class }, | |
resourceType = "millr/components/stuff", | |
defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL | |
) | |
@Exporter(name = "jackson", extensions = "json") | |
public class DoStuff { | |
@Self | |
private SlingHttpServletRequest request; | |
public String getStuff() { | |
return "stuff"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment