|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.definition.pattern.AbstractPatternDefinitionResolver<T>
T
- The type of the customization key.public abstract class AbstractPatternDefinitionResolver<T>
A pattern definition resolver that stores DefinitionPatternMatcher
separated by customization key.
Implementations should provide a way to translate a definition to a
DefinitionPatternMatcher
.
Constructor Summary | |
---|---|
AbstractPatternDefinitionResolver()
|
Method Summary | |
---|---|
protected abstract Map<String,Definition> |
addDefinitionsAsPatternMatchers(List<DefinitionPatternMatcher> matchers,
Map<String,Definition> defsMap)
Adds definitions, filtering and adding them to the list of definition pattern matchers. |
Definition |
resolveDefinition(String name,
T customizationKey)
Resolves a definition searching in all patterns for the requested customization key. |
Map<String,Definition> |
storeDefinitionPatterns(Map<String,Definition> localeDefsMap,
T customizationKey)
Stores definition patterns. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPatternDefinitionResolver()
Method Detail |
---|
public Definition resolveDefinition(String name, T customizationKey)
resolveDefinition
in interface PatternDefinitionResolver<T>
name
- The name of the definition.customizationKey
- The customization key.
public Map<String,Definition> storeDefinitionPatterns(Map<String,Definition> localeDefsMap, T customizationKey)
storeDefinitionPatterns
in interface PatternDefinitionResolver<T>
localeDefsMap
- The map of definitions that may contain also
patterns.customizationKey
- The customization key.
protected abstract Map<String,Definition> addDefinitionsAsPatternMatchers(List<DefinitionPatternMatcher> matchers, Map<String,Definition> defsMap)
matchers
- The list containing the currently stored definition pattern
matchers.defsMap
- The definition map to parse.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |