This project has retired. For details please refer to its
Attic page.
LocaleUrlDefinitionDAO (Tiles 2 2.1.4 API)
org.apache.tiles.definition.dao
Class LocaleUrlDefinitionDAO
java.lang.Object
org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO
org.apache.tiles.definition.dao.LocaleUrlDefinitionDAO
- All Implemented Interfaces:
- TilesApplicationContextAware, DefinitionDAO<Locale>, URLReader, RefreshMonitor, Initializable
public class LocaleUrlDefinitionDAO
- extends BaseLocaleUrlDefinitionDAO
A definition DAO that uses Locale
as a customization key and loads
definitions from URLs. It does not cache definitions in any way.
- Since:
- 2.1.0
- Version:
- $Rev: 672360 $ $Date: 2008-06-27 21:12:29 +0200 (ven, 27 giu 2008) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleUrlDefinitionDAO
public LocaleUrlDefinitionDAO()
getDefinition
public Definition getDefinition(String name,
Locale customizationKey)
Returns a definition, given its name and the customization key.
WARNING! This method is slow! It loads all the
definitions and then selects the needed one.
- Parameters:
name
- The name of the definition.customizationKey
- The customization key.
- Returns:
- The requested definition, if found, otherwise
null
.
The inheritance of the definition must not be resolved. - Since:
- 2.1.0
getDefinitions
public Map<String,Definition> getDefinitions(Locale customizationKey)
- Returns all the definitions used of a customization key.
- Parameters:
customizationKey
- The customization key.
- Returns:
- All the definitions that are connected to the customization key.
The inheritance of the definitions must not be resolved.
Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.