public class UnresolvingLocaleDefinitionsFactory extends Object implements DefinitionsFactory
DefinitionsFactory
implementation that manages
Definitions configuration data from URLs, without resolving definition
inheritance when a definition is returned.
The Definition objects are read from the
DigesterDefinitionsReader
class unless another implementation is specified.
Modifier and Type | Field and Description |
---|---|
protected DefinitionDAO<Locale> |
definitionDao
The definition DAO that extracts the definitions from the sources.
|
protected LocaleResolver |
localeResolver
The locale resolver object.
|
DEFINITION_DAO_INIT_PARAM, DEFINITIONS_CONFIG, LOCALE_RESOLVER_IMPL_PROPERTY, READER_IMPL_PROPERTY
Constructor and Description |
---|
UnresolvingLocaleDefinitionsFactory() |
Modifier and Type | Method and Description |
---|---|
Definition |
getDefinition(String name,
org.apache.tiles.request.Request tilesContext)
Returns a Definition object that matches the given name and
Tiles context.
|
void |
setDefinitionDAO(DefinitionDAO<Locale> definitionDao)
Sets the definition DAO to use.
|
void |
setLocaleResolver(LocaleResolver localeResolver)
Sets the locale resolver to use.
|
protected DefinitionDAO<Locale> definitionDao
protected LocaleResolver localeResolver
public void setLocaleResolver(LocaleResolver localeResolver)
localeResolver
- The locale resolver.public void setDefinitionDAO(DefinitionDAO<Locale> definitionDao)
definitionDao
- The definition DAO.public Definition getDefinition(String name, org.apache.tiles.request.Request tilesContext)
getDefinition
in interface DefinitionsFactory
name
- The name of the Definition to return.tilesContext
- The Tiles context to use to resolve the definition.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.