Skip to content

Instantly share code, notes, and snippets.

@auniverseaway
Created November 29, 2017 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auniverseaway/c8b7b9013b5ecdd9c790253d194d17b6 to your computer and use it in GitHub Desktop.
Save auniverseaway/c8b7b9013b5ecdd9c790253d194d17b6 to your computer and use it in GitHub Desktop.
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