This project has retired. For details please refer to its Attic page.
BasicPatternDefinitionResolver (Tiles 2 2.2.2 API)

org.apache.tiles.definition.pattern
Class BasicPatternDefinitionResolver<T>

Package class diagram package BasicPatternDefinitionResolver
java.lang.Object
  extended by org.apache.tiles.definition.pattern.AbstractPatternDefinitionResolver<T>
      extended by org.apache.tiles.definition.pattern.BasicPatternDefinitionResolver<T>
Type Parameters:
T - The type of the customization key.
All Implemented Interfaces:
PatternDefinitionResolver<T>

public class BasicPatternDefinitionResolver<T>
extends AbstractPatternDefinitionResolver<T>

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.

Since:
2.2.0
Version:
$Rev: 823662 $ $Date: 2009-10-09 20:48:03 +0200 (ven, 09 ott 2009) $

Constructor Summary
BasicPatternDefinitionResolver(DefinitionPatternMatcherFactory definitionPatternMatcherFactory, PatternRecognizer patternRecognizer)
          Constructor.
 
Method Summary
protected  Map<String,Definition> addDefinitionsAsPatternMatchers(List<DefinitionPatternMatcher> matchers, Map<String,Definition> defsMap)
          Adds definitions, filtering and adding them to the list of definition pattern matchers.
 
Methods inherited from class org.apache.tiles.definition.pattern.AbstractPatternDefinitionResolver
resolveDefinition, storeDefinitionPatterns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPatternDefinitionResolver

public BasicPatternDefinitionResolver(DefinitionPatternMatcherFactory definitionPatternMatcherFactory,
                                      PatternRecognizer patternRecognizer)
Constructor.

Parameters:
definitionPatternMatcherFactory - The definition pattern matcher factory.
patternRecognizer - The pattern recognizer.
Method Detail

addDefinitionsAsPatternMatchers

protected Map<String,Definition> addDefinitionsAsPatternMatchers(List<DefinitionPatternMatcher> matchers,
                                                                 Map<String,Definition> defsMap)
Adds definitions, filtering and adding them to the list of definition pattern matchers. Only a subset of definitions will be transformed into definition pattern matchers.

Specified by:
addDefinitionsAsPatternMatchers in class AbstractPatternDefinitionResolver<T>
Parameters:
matchers - The list containing the currently stored definition pattern matchers.
defsMap - The definition map to parse.
Returns:
The map of the definitions not recognized as containing definition patterns.


Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.