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

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

A definitions DAO (loading URLs and using Locale as a customization key) that caches definitions that have been loaded and resolves inheritances.

It can check if the URLs change, but by default this feature is turned off.

Fields inherited from org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO:
CHECK_REFRESH_INIT_PARAMETER,  locale2definitionMap,  checkRefresh,  definitionResolver
Fields inherited from org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO:
sourceURLs,  lastModifiedDates,  applicationContext,  reader
Method from org.apache.tiles.definition.dao.ResolvingLocaleUrlDefinitionDAO Summary:
copyDefinitionMap,   getDefinitionFromResolver,   loadDefinitionsFromURLs,   loadParentDefinitions,   postDefinitionLoadOperations,   resolveInheritance,   resolveInheritances
Methods from org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO:
checkAndloadDefinitions,   copyDefinitionMap,   getDefinition,   getDefinitionFromResolver,   getDefinitions,   init,   loadDefinitions,   loadDefinitionsFromURLs,   loadParentDefinitions,   loadRawDefinitionsFromURLs,   postDefinitionLoadOperations,   refresh,   setCheckRefresh,   setPatternDefinitionResolver
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.ResolvingLocaleUrlDefinitionDAO Detail:
 protected Map<String, Definition> copyDefinitionMap(Map<String, Definition> localeDefsMap) 
    Copies the definition map to be passed to a higher level of customization key.
 protected Definition getDefinitionFromResolver(String name,
    Locale customizationKey) 
    {@inheritDoc}
 protected Map<String, Definition> loadDefinitionsFromURLs(Locale customizationKey) 
    {@inheritDoc}
 protected Map<String, Definition> loadParentDefinitions(Locale parentLocale) 
    {@inheritDoc}
 protected  void postDefinitionLoadOperations(Map<String, Definition> localeDefsMap,
    Locale customizationKey) 
    {@inheritDoc}
 protected  void resolveInheritance(Definition definition,
    Map<String, Definition> definitions,
    Locale locale,
    Set<String> alreadyResolvedDefinitions) 
    Resolve locale-specific inheritance. First, resolve parent's inheritance, then set template to the parent's template. Also copy attributes setted in parent, and not set in child If instance doesn't extend anything, do nothing.
 protected  void resolveInheritances(Map<String, Definition> map,
    Locale locale) 
    Resolve locale-specific extended instances.