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

java.lang.Objectorg.apache.tiles.definition.LocaleDefinitionsFactory
public class LocaleDefinitionsFactory
DefinitionsFactory implementation that manages
Definitions configuration data from URLs, but resolving definition
inheritance when a definition is returned..
The Definition objects are read from the
DigesterDefinitionsReader
class unless another implementation is specified.
| Field Summary | |
|---|---|
protected TilesApplicationContext |
applicationContext
The application context. |
protected DefinitionDAO<Locale> |
definitionDao
The definition DAO that extracts the definitions from the sources. |
protected LocaleResolver |
localeResolver
The locale resolver object. |
| Fields inherited from interface org.apache.tiles.definition.DefinitionsFactory |
|---|
DEFINITION_DAO_INIT_PARAM, DEFINITIONS_CONFIG, LOCALE_RESOLVER_IMPL_PROPERTY, READER_IMPL_PROPERTY |
| Constructor Summary | |
|---|---|
LocaleDefinitionsFactory()
|
|
| Method Summary | |
|---|---|
void |
addSource(Object source)
Deprecated. |
protected DefinitionDAO<Locale> |
createDefaultDefinitionDAO()
Creates the default definition DAO, if it has not been specified outside. |
protected LocaleResolver |
createDefaultLocaleResolver()
Creates the default locale resolver, if it has not been specified outside. |
Definition |
getDefinition(String name,
TilesRequestContext tilesContext)
Returns a Definition object that matches the given name and Tiles context. |
void |
init(Map<String,String> params)
Initializes the DefinitionsFactory and its subcomponents. |
Definitions |
readDefinitions()
Deprecated. |
void |
setApplicationContext(TilesApplicationContext applicationContext)
Sets the Tiles application context. |
void |
setDefinitionDAO(DefinitionDAO<Locale> definitionDao)
Sets the definition DAO to use. |
void |
setLocaleResolver(LocaleResolver localeResolver)
Sets the locale resolver to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DefinitionDAO<Locale> definitionDao
protected TilesApplicationContext applicationContext
protected LocaleResolver localeResolver
| Constructor Detail |
|---|
public LocaleDefinitionsFactory()
| Method Detail |
|---|
public void setApplicationContext(TilesApplicationContext applicationContext)
setApplicationContext in interface TilesApplicationContextAwareapplicationContext - The Tiles application context.public void setLocaleResolver(LocaleResolver localeResolver)
localeResolver - The locale resolver.public void setDefinitionDAO(DefinitionDAO<Locale> definitionDao)
definitionDao - The definition DAO.public void init(Map<String,String> params)
init in interface DefinitionsFactoryinit in interface Initializableparams - The Map of configuration properties.
DefinitionsFactoryException - if an initialization error occurs.
public Definition getDefinition(String name,
TilesRequestContext tilesContext)
getDefinition in interface DefinitionsFactoryname - The name of the Definition to return.tilesContext - The Tiles context to use to resolve the definition.
@Deprecated public void addSource(Object source)
addSource in interface DefinitionsFactorysource - The configuration source for definitions.@Deprecated public Definitions readDefinitions()
Definitions set by reading
configuration data from the applied sources.
readDefinitions in interface DefinitionsFactoryprotected LocaleResolver createDefaultLocaleResolver()
protected DefinitionDAO<Locale> createDefaultDefinitionDAO()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||