public abstract class BaseLocaleUrlDefinitionDAO extends Object implements DefinitionDAO<Locale>, RefreshMonitor
| Modifier and Type | Field and Description | 
|---|---|
| protected ApplicationContext | applicationContextApplicationContext to locate the source files. | 
| protected Map<String,Long> | lastModifiedDatesContains the dates that the URL sources were last modified. | 
| protected DefinitionsReader | readerReader used to get definitions from the sources. | 
| protected List<ApplicationResource> | sourcesContains the URL objects identifying where configuration data is found. | 
| Constructor and Description | 
|---|
| BaseLocaleUrlDefinitionDAO(ApplicationContext applicationContext)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Map<String,Definition> | loadDefinitionsFromResource(ApplicationResource resource)Loads definitions from an URL without loading from "parent" URLs. | 
| boolean | refreshRequired()Indicates whether the sources are out of date and need to be reloaded. | 
| void | setReader(DefinitionsReader reader) | 
| void | setSources(List<ApplicationResource> sources) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefinition, getDefinitionsprotected List<ApplicationResource> sources
protected Map<String,Long> lastModifiedDates
protected DefinitionsReader reader
protected ApplicationContext applicationContext
public BaseLocaleUrlDefinitionDAO(ApplicationContext applicationContext)
public void setSources(List<ApplicationResource> sources)
public void setReader(DefinitionsReader reader)
public boolean refreshRequired()
refreshRequired in interface RefreshMonitortrue if the sources need to be refreshed.protected Map<String,Definition> loadDefinitionsFromResource(ApplicationResource resource)
resource - The URL to read.Copyright © 2000–2025 Apache Software Foundation. All rights reserved.