|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO
org.apache.tiles.definition.dao.LocaleUrlDefinitionDAO
public class LocaleUrlDefinitionDAO
A definition DAO that uses Locale
as a customization key and loads
definitions from URLs. It does not cache definitions in any way.
Field Summary |
---|
Fields inherited from class org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO |
---|
applicationContext, lastModifiedDates, reader, sourceURLs |
Constructor Summary | |
---|---|
LocaleUrlDefinitionDAO()
|
Method Summary | |
---|---|
Definition |
getDefinition(java.lang.String name,
java.util.Locale customizationKey)
Returns a definition, given its name and the customization key. |
java.util.Map<java.lang.String,Definition> |
getDefinitions(java.util.Locale customizationKey)
Returns all the definitions used of a customization key. |
Methods inherited from class org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO |
---|
addSourceURL, getResourceNames, getResourceString, identifySources, init, loadDefinitionsFromURL, refreshRequired, setApplicationContext, setReader, setSourceURLs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocaleUrlDefinitionDAO()
Method Detail |
---|
public Definition getDefinition(java.lang.String name, java.util.Locale customizationKey)
Returns a definition, given its name and the customization key.
WARNING! This method is slow! It loads all the definitions and then selects the needed one.
name
- The name of the definition.customizationKey
- The customization key.
null
.
The inheritance of the definition must not be resolved.public java.util.Map<java.lang.String,Definition> getDefinitions(java.util.Locale customizationKey)
customizationKey
- The customization key.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |