Package org.apache.tapestry5.internal.renderers

## Class LocationRenderer

- java.lang.Object
- - org.apache.tapestry5.internal.renderers.LocationRenderer

- All Implemented Interfaces:
    `ObjectRenderer<Location>`

      @Scope("perthread")
      public class LocationRenderer
      extends java.lang.Object
      implements ObjectRenderer<Location>

  Responsible for rendering a `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 Summary

    Constructors
    Constructor | Description
    --- | ---
    `LocationRenderer()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `render​(Location location, MarkupWriter writer)` | Renders the object out as markup.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LocationRenderer

          public LocationRenderer()

  - ### Method Detail

    - #### render

          public void render​(Location location,
                             MarkupWriter writer)

      Description copied from interface: `ObjectRenderer`
      Renders the object out as markup.
      Specified by:
        `render` in interface `ObjectRenderer<Location>`
      Parameters:
        `location` - to be rendered
        `writer` - to which output should be directed