Class BaseLocaleUrlDefinitionDAO
java.lang.Object
org.apache.tiles.core.definition.dao.BaseLocaleUrlDefinitionDAO
- All Implemented Interfaces:
- DefinitionDAO<Locale>,- RefreshMonitor
- Direct Known Subclasses:
- CachingLocaleUrlDefinitionDAO
public abstract class BaseLocaleUrlDefinitionDAO
extends Object
implements DefinitionDAO<Locale>, RefreshMonitor
Base abstract class for a DAO that is based on URLs and locale as a
 customization key.
- Since:
- 2.1.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected ApplicationContextApplicationContext to locate the source files.Contains the dates that the URL sources were last modified.protected DefinitionsReaderReader used to get definitions from the sources.protected List<ApplicationResource>Contains the URL objects identifying where configuration data is found.
- 
Constructor SummaryConstructorsConstructorDescriptionBaseLocaleUrlDefinitionDAO(ApplicationContext applicationContext) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected Map<String,Definition> Loads definitions from an URL without loading from "parent" URLs.booleanIndicates whether the sources are out of date and need to be reloaded.voidsetReader(DefinitionsReader reader) voidsetSources(List<ApplicationResource> sources) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tiles.core.definition.dao.DefinitionDAOgetDefinition, getDefinitions
- 
Field Details- 
sourcesContains the URL objects identifying where configuration data is found.- Since:
- 2.1.0
 
- 
lastModifiedDatesContains the dates that the URL sources were last modified.- Since:
- 2.1.0
 
- 
readerReader used to get definitions from the sources.- Since:
- 2.1.0
 
- 
applicationContextApplicationContext to locate the source files.- Since:
- 3.0.0
 
 
- 
- 
Constructor Details- 
BaseLocaleUrlDefinitionDAOConstructor.
 
- 
- 
Method Details- 
setSources
- 
setReader
- 
refreshRequiredpublic boolean refreshRequired()Indicates whether the sources are out of date and need to be reloaded.- Specified by:
- refreshRequiredin interface- RefreshMonitor
- Returns:
- trueif the sources need to be refreshed.
 
- 
loadDefinitionsFromResourceLoads definitions from an URL without loading from "parent" URLs.- Parameters:
- resource- The URL to read.
- Returns:
- The definition map that has been read.
 
 
-