
public class LocaleUrlDefinitionDAO extends BaseLocaleUrlDefinitionDAO
Locale as a customization key and loads
definitions from URLs. It does not cache definitions in any way.applicationContext, lastModifiedDates, reader, sources| Constructor and Description |
|---|
LocaleUrlDefinitionDAO(org.apache.tiles.request.ApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
Definition |
getDefinition(String name,
Locale customizationKey)
Returns a definition, given its name and the customization key.
|
Map<String,Definition> |
getDefinitions(Locale customizationKey)
Returns all the definitions used of a customization key.
|
loadDefinitionsFromResource, refreshRequired, setReader, setSourcespublic LocaleUrlDefinitionDAO(org.apache.tiles.request.ApplicationContext applicationContext)
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.name - The name of the definition.customizationKey - The customization key.null.
The inheritance of the definition must not be resolved.public Map<String,Definition> getDefinitions(Locale customizationKey)
customizationKey - The customization key.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.