org.apache.tiles.definition.pattern
public class: BasicPatternDefinitionResolver [javadoc |
source]
java.lang.Object
org.apache.tiles.definition.pattern.AbstractPatternDefinitionResolver<T>
org.apache.tiles.definition.pattern.BasicPatternDefinitionResolver
All Implemented Interfaces:
PatternDefinitionResolver
A pattern definition resolver that stores
DefinitionPatternMatcher
separated by customization key.
It delegates creation of definition pattern matchers to a
DefinitionPatternMatcherFactory and recgnizes patterns through the
use of a
PatternRecognizer .
Parameters:
- The type of the customization key.
- version:
$
- Rev: 823662 $ $Date: 2009-10-09 20:48:03 +0200 (ven, 09 ott 2009) $
- since:
2.2.0
-
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.tiles.definition.pattern.BasicPatternDefinitionResolver Detail: |
protected Map<String, Definition> addDefinitionsAsPatternMatchers(List<DefinitionPatternMatcher> matchers,
Map<String, Definition> defsMap) {
Set< String > excludedKeys = new LinkedHashSet< String >();
for (Map.Entry< String, Definition > de : defsMap.entrySet()) {
String key = de.getKey();
if (patternRecognizer.isPatternRecognized(key)) {
matchers.add(definitionPatternMatcherFactory
.createDefinitionPatternMatcher(key, de.getValue()));
} else {
excludedKeys.add(key);
}
}
return PatternUtil.createExtractedMap(defsMap, excludedKeys);
}
|