1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.tiles.renderer;
22
23 import java.io.IOException;
24
25 import org.apache.tiles.Attribute;
26 import org.apache.tiles.context.TilesRequestContext;
27
28 /***
29 * An object that can render an attribute. For each attribute, if it needs to be
30 * rendered, has an associated renderer.
31 *
32 * @version $Rev: 736275 $ $Date: 2009-01-21 10:58:20 +0100 (mer, 21 gen 2009) $
33 * @since 2.1.0
34 */
35 public interface AttributeRenderer {
36
37 /***
38 * Renders an attribute.
39 *
40 * @param attribute The attribute to render.
41 * @param request The Tiles request context.
42 * @throws IOException If something goes wrong during rendition.
43 * @throws RendererException If something goes wrong during rendition.
44 * @since 2.1.2
45 */
46 void render(Attribute attribute, TilesRequestContext request)
47 throws IOException;
48 }