@Scope(value="perthread") public class LocationRenderer extends Object implements ObjectRenderer<Location>
Location
. It is designed to only perform the full output (which includes a
snippet of the source file) once per render. This requires the use of the "perthread" scope (since the service
tracks, internally, which locations have already been rendered, to avoid repetition).Constructor and Description |
---|
LocationRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
render(Location location,
MarkupWriter writer)
Renders the object out as markup.
|
public LocationRenderer()
public void render(Location location, MarkupWriter writer)
ObjectRenderer
render
in interface ObjectRenderer<Location>
location
- to be renderedwriter
- to which output should be directed5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.