public abstract class BaseLocaleUrlDefinitionDAO extends Object implements DefinitionDAO<Locale>, RefreshMonitor
Modifier and Type | Field and Description |
---|---|
protected org.apache.tiles.request.ApplicationContext |
applicationContext
ApplicationContext to locate the source files.
|
protected Map<String,Long> |
lastModifiedDates
Contains the dates that the URL sources were last modified.
|
protected DefinitionsReader |
reader
Reader used to get definitions from the sources.
|
protected List<org.apache.tiles.request.ApplicationResource> |
sources
Contains the URL objects identifying where configuration data is found.
|
Constructor and Description |
---|
BaseLocaleUrlDefinitionDAO(org.apache.tiles.request.ApplicationContext applicationContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,Definition> |
loadDefinitionsFromResource(org.apache.tiles.request.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<org.apache.tiles.request.ApplicationResource> sources) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefinition, getDefinitions
protected List<org.apache.tiles.request.ApplicationResource> sources
protected Map<String,Long> lastModifiedDates
protected DefinitionsReader reader
protected org.apache.tiles.request.ApplicationContext applicationContext
public BaseLocaleUrlDefinitionDAO(org.apache.tiles.request.ApplicationContext applicationContext)
public void setSources(List<org.apache.tiles.request.ApplicationResource> sources)
public void setReader(DefinitionsReader reader)
public boolean refreshRequired()
refreshRequired
in interface RefreshMonitor
true
if the sources need to be refreshed.protected Map<String,Definition> loadDefinitionsFromResource(org.apache.tiles.request.ApplicationResource resource)
resource
- The URL to read.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.