1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.jetspeed.portal.portlets.viewprocessor;
22
23 import org.apache.jetspeed.portal.Portlet;
24 import org.apache.jetspeed.portal.PortletException;
25 import org.apache.jetspeed.portal.portlets.*;
26
27 /***
28 * Interface that defines a ViewProcessor. This is what the
29 * GenericMVCPortlet uses via the ViewProcessorFactory to
30 * do the template processing portion of the MVC design pattern.
31 *
32 * @author tkuebler
33 * @version 1.0
34 * @stereotype plug-in point
35 */
36 public interface ViewProcessor
37 {
38
39 /***
40 * Process the template passed in the context
41 * (context.get("template")). Invoked by the GenericMVCPortlet
42 * after action handling to process the template type
43 * in question.
44 */
45 void init(Portlet portlet)
46 throws PortletException;
47
48 Object processView(GenericMVCContext context);
49 }