|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO
public abstract class BaseLocaleUrlDefinitionDAO
Base abstract class for a DAO that is based on URLs and locale as a customization key.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
BaseLocaleUrlDefinitionDAO(org.apache.tiles.request.ApplicationContext applicationContext)
Constructor. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.tiles.definition.dao.DefinitionDAO |
|---|
getDefinition, getDefinitions |
| Field Detail |
|---|
protected List<org.apache.tiles.request.ApplicationResource> sources
protected Map<String,Long> lastModifiedDates
protected DefinitionsReader reader
protected org.apache.tiles.request.ApplicationContext applicationContext
| Constructor Detail |
|---|
public BaseLocaleUrlDefinitionDAO(org.apache.tiles.request.ApplicationContext applicationContext)
| Method Detail |
|---|
public void setSources(List<org.apache.tiles.request.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(org.apache.tiles.request.ApplicationResource resource)
resource - The URL to read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||