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

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

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

public class WildcardPatternDefinitionResolver<T>
extends Object
implements PatternDefinitionResolver<T>

Uses wildcards syntax to match definition names and its parameters.

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

Constructor Summary
WildcardPatternDefinitionResolver()
           
 
Method Summary
 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

WildcardPatternDefinitionResolver

public WildcardPatternDefinitionResolver()
Method Detail

resolveDefinition

public Definition resolveDefinition(String name,
                                    T customizationKey)
Resolves a definition searching in all patterns for the requested customization key.

Specified by:
resolveDefinition in interface PatternDefinitionResolver<T>
Parameters:
name - The name of the definition.
customizationKey - The customization key.
Returns:
The resolved definition.

storeDefinitionPatterns

public Map<String,Definition> storeDefinitionPatterns(Map<String,Definition> localeDefsMap,
                                                      T customizationKey)
Stores definition patterns.

Specified by:
storeDefinitionPatterns in interface PatternDefinitionResolver<T>
Parameters:
localeDefsMap - The map of definitions that may contain also patterns.
customizationKey - The customization key.
Returns:
The map of the definitions not recognized as containing definition patterns.


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