Package org.apache.tiles.core.definition
Class UnresolvingLocaleDefinitionsFactory
java.lang.Object
org.apache.tiles.core.definition.UnresolvingLocaleDefinitionsFactory
- All Implemented Interfaces:
- 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.
 
- Since:
- 2.2.1
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected DefinitionDAO<Locale>The definition DAO that extracts the definitions from the sources.protected LocaleResolverThe locale resolver object.Fields inherited from interface org.apache.tiles.core.definition.DefinitionsFactoryDEFINITION_DAO_INIT_PARAM, DEFINITIONS_CONFIG, LOCALE_RESOLVER_IMPL_PROPERTY, READER_IMPL_PROPERTY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetDefinition(String name, Request tilesContext) Returns a Definition object that matches the given name and Tiles context.voidsetDefinitionDAO(DefinitionDAO<Locale> definitionDao) Sets the definition DAO to use.voidsetLocaleResolver(LocaleResolver localeResolver) Sets the locale resolver to use.
- 
Field Details- 
definitionDaoThe definition DAO that extracts the definitions from the sources.- Since:
- 2.2.1
 
- 
localeResolverThe locale resolver object.- Since:
- 2.2.1
 
 
- 
- 
Constructor Details- 
UnresolvingLocaleDefinitionsFactorypublic UnresolvingLocaleDefinitionsFactory()
 
- 
- 
Method Details- 
setLocaleResolverSets the locale resolver to use.- Parameters:
- localeResolver- The locale resolver.
- Since:
- 2.2.1
 
- 
setDefinitionDAOSets the definition DAO to use. It must be locale-based.- Parameters:
- definitionDao- The definition DAO.
- Since:
- 2.2.1
 
- 
getDefinitionReturns a Definition object that matches the given name and Tiles context.- Specified by:
- getDefinitionin interface- DefinitionsFactory
- Parameters:
- name- The name of the Definition to return.
- tilesContext- The Tiles context to use to resolve the definition.
- Returns:
- the Definition matching the given name or null if none is found.
 
 
-