Class LocaleDefinitionsFactory

java.lang.Object
org.apache.tiles.definition.UnresolvingLocaleDefinitionsFactory
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-15 01:00:02 +1100 (Sun, 15 Nov 2009) $
  • Constructor Details

    • LocaleDefinitionsFactory

      public LocaleDefinitionsFactory()
  • Method Details

    • 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.