Home » tiles-2.2.1-src » org.apache.tiles.definition.dao » [javadoc | source]
org.apache.tiles.definition.dao
public class: LocaleUrlDefinitionDAO [javadoc | source]
java.lang.Object
   org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO
      org.apache.tiles.definition.dao.LocaleUrlDefinitionDAO

All Implemented Interfaces:
    URLReader, RefreshMonitor, TilesApplicationContextAware, DefinitionDAO, Initializable

A definition DAO that uses Locale as a customization key and loads definitions from URLs. It does not cache definitions in any way.
Fields inherited from org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO:
sourceURLs,  lastModifiedDates,  applicationContext,  reader
Method from org.apache.tiles.definition.dao.LocaleUrlDefinitionDAO Summary:
getDefinition,   getDefinitions
Methods from org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO:
addSourceURL,   getResourceNames,   getResourceString,   identifySources,   init,   loadDefinitionsFromURL,   refreshRequired,   setApplicationContext,   setReader,   setSourceURLs
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tiles.definition.dao.LocaleUrlDefinitionDAO Detail:
 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.
 public Map<String, Definition> getDefinitions(Locale customizationKey) 
    {@inheritDoc}