Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ComponentRenderWorker |
|
| 1.0;1 |
1 | // Copyright May 20, 2006 The Apache Software Foundation | |
2 | // | |
3 | // Licensed under the Apache License, Version 2.0 (the "License"); | |
4 | // you may not use this file except in compliance with the License. | |
5 | // You may obtain a copy of the License at | |
6 | // | |
7 | // http://www.apache.org/licenses/LICENSE-2.0 | |
8 | // | |
9 | // Unless required by applicable law or agreed to in writing, software | |
10 | // distributed under the License is distributed on an "AS IS" BASIS, | |
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 | // See the License for the specific language governing permissions and | |
13 | // limitations under the License. | |
14 | package org.apache.tapestry.services; | |
15 | ||
16 | import org.apache.tapestry.IComponent; | |
17 | import org.apache.tapestry.IRequestCycle; | |
18 | import org.apache.tapestry.PageRenderSupport; | |
19 | import org.apache.tapestry.html.Body; | |
20 | ||
21 | ||
22 | /** | |
23 | * Interface that defines the chain of render workers that will be | |
24 | * invoked after all {@link IComponent} render invocations. | |
25 | * | |
26 | * @author jkuhnert | |
27 | */ | |
28 | public interface ComponentRenderWorker | |
29 | { | |
30 | ||
31 | /** | |
32 | * Invoked just after the components render call, giving services | |
33 | * implementing the {@link ComponentRenderWorker} interface a guaranteed | |
34 | * state to work off of. | |
35 | * | |
36 | * @param cycle | |
37 | * The associated request for this render. | |
38 | * @param component | |
39 | * The component that has just been rendered. | |
40 | */ | |
41 | void renderComponent(IRequestCycle cycle, IComponent component); | |
42 | ||
43 | /** | |
44 | * Special render for handling html element targets. This is invoked | |
45 | * just after the body component renders its body, but before the script | |
46 | * data is written out. | |
47 | * | |
48 | * @param cycle | |
49 | * The associated request cycle. | |
50 | * @param component | |
51 | * The {@link Body} component, which holds the needed {@link PageRenderSupport} object. | |
52 | */ | |
53 | void renderBody(IRequestCycle cycle, Body component); | |
54 | } |