Package org.apache.tiles.definition
Interface DefinitionsFactory
- All Known Implementing Classes:
LocaleDefinitionsFactory
,UnresolvingLocaleDefinitionsFactory
public interface DefinitionsFactory
Interface for creating a
Definition
s and managing their contents.
DefinitionsFactory implementations are responsible for maintaining the data sources of Tiles configuration data and using the data to create Definitions sets. Implementations also know how to append locale-specific configuration data to an existing Definitions set.
- Version:
- $Rev: 833737 $ $Date: 2009-11-08 06:17:09 +1100 (Sun, 08 Nov 2009) $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Constant representing the configuration parameter used to define the definition DAO to use.static final String
Constant representing the configuration parameter used to define the tiles definition resources.static final String
Property name that specifies the implementation ofLocaleResolver
.static final String
Property name that specifies the implementation of the DefinitionsReader. -
Method Summary
Modifier and TypeMethodDescriptiongetDefinition
(String name, org.apache.tiles.request.Request tilesContext) Returns a Definition object that matches the given name and Tiles context.
-
Field Details
-
READER_IMPL_PROPERTY
Property name that specifies the implementation of the DefinitionsReader.- See Also:
-
LOCALE_RESOLVER_IMPL_PROPERTY
Property name that specifies the implementation ofLocaleResolver
.- See Also:
-
DEFINITIONS_CONFIG
Constant representing the configuration parameter used to define the tiles definition resources.- Since:
- 2.1.0
- See Also:
-
DEFINITION_DAO_INIT_PARAM
Constant representing the configuration parameter used to define the definition DAO to use.- See Also:
-
-
Method Details
-
getDefinition
Returns a Definition object that matches the given name and Tiles context.- 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.
-