org.apache.tiles.definition
Class LocaleDefinitionsFactory

Package class diagram package LocaleDefinitionsFactory
java.lang.Object
  extended by org.apache.tiles.definition.UnresolvingLocaleDefinitionsFactory
      extended by org.apache.tiles.definition.LocaleDefinitionsFactory
All Implemented Interfaces:
DefinitionsFactory

public class LocaleDefinitionsFactory
extends UnresolvingLocaleDefinitionsFactory

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.

Since:
2.1.0
Version:
$Rev: 836180 $ $Date: 2009-11-14 09:00:02 -0500 (Sat, 14 Nov 2009) $

Field Summary
 
Fields inherited from class org.apache.tiles.definition.UnresolvingLocaleDefinitionsFactory
definitionDao, localeResolver
 
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
 Definition getDefinition(String name, org.apache.tiles.request.Request tilesContext)
          Returns a Definition object that matches the given name and Tiles context.
 
Methods inherited from class org.apache.tiles.definition.UnresolvingLocaleDefinitionsFactory
setDefinitionDAO, setLocaleResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleDefinitionsFactory

public LocaleDefinitionsFactory()
Method Detail

getDefinition

public Definition getDefinition(String name,
                                org.apache.tiles.request.Request tilesContext)
Returns a Definition object that matches the given name and Tiles context.

Specified by:
getDefinition in interface DefinitionsFactory
Overrides:
getDefinition in class UnresolvingLocaleDefinitionsFactory
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.


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.