1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.apache.tiles.definition.pattern;
23
24 import java.util.Map;
25
26 import org.apache.tiles.Definition;
27
28 /***
29 * Resolves a definition starting from patterns stored in definition maps.
30 *
31 * @param <T> The type of the customization key.
32 * @version $Rev: 823662 $ $Date: 2009-10-09 20:48:03 +0200 (ven, 09 ott 2009) $
33 * @since 2.2.0
34 */
35 public interface PatternDefinitionResolver<T> {
36
37 /***
38 * Stores definition patterns.
39 *
40 * @param localeDefsMap The map of definitions that may contain also
41 * patterns.
42 * @param customizationKey The customization key.
43 * @return The map of the definitions not recognized as containing
44 * definition patterns.
45 * @since 2.2.1
46 */
47 Map<String, Definition> storeDefinitionPatterns(Map<String, Definition> localeDefsMap,
48 T customizationKey);
49
50 /***
51 * Resolves a definition searching in all patterns for the requested
52 * customization key.
53 *
54 * @param name The name of the definition.
55 * @param customizationKey The customization key.
56 * @return The resolved definition.
57 * @since 2.2.0
58 */
59 Definition resolveDefinition(String name, T customizationKey);
60 }