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.preparer;
22
23 import org.apache.tiles.context.TilesRequestContext;
24
25 /***
26 * <p>
27 * Factory interface used to create/retrieve instances of
28 * the {@link ViewPreparer} interface.
29 * <p/>
30 *
31 * <p>
32 * This factory provides an extension point into the default
33 * tiles implementation. Implementors wishing to provide
34 * per request initialization of the ViewPreparer (for instance)
35 * may provide a custom prerparer.
36 * </p>
37 *
38 * @since 2.0
39 *
40 * @version $Rev: 637434 $ $Date: 2008-03-15 16:48:38 +0100 (sab, 15 mar 2008) $
41 */
42 public interface PreparerFactory {
43
44 /***
45 * Create the named {link ViewPreparer} for the specified context.
46 *
47 * @param name ViewPreparer name, commonly the qualified classname.
48 * @param context the context within which the preparerInstance will be invoked.
49 * @return instance of the ViewPreparer
50 */
51 ViewPreparer getPreparer(String name, TilesRequestContext context);
52 }