org.apache.tiles.definition
DefinitionsImpl
.@Deprecated public interface Definitions
Definition
objects.
The Definitions interface provides a pattern for managing Definition objects. Implementations will provide a means to append new Definitions to the collection, add and retrieve lcale-specific Definitions objects, and reset the collections.
Modifier and Type | Method and Description |
---|---|
void |
addDefinitions(java.util.Map<java.lang.String,Definition> defsMap)
Deprecated.
Adds new Definition objects to the internal collection and
resolves inheritance attraibutes.
|
void |
addDefinitions(java.util.Map<java.lang.String,Definition> defsMap,
java.util.Locale locale)
Deprecated.
Adds new locale-specific Definition objects to the internal
collection and resolves inheritance attraibutes.
|
java.util.Map<java.lang.String,Definition> |
getBaseDefinitions()
Deprecated.
Returns base definitions collection.
|
Definition |
getDefinition(java.lang.String name)
Deprecated.
Returns a Definition object that matches the given name.
|
Definition |
getDefinition(java.lang.String name,
java.util.Locale locale)
Deprecated.
Returns a Definition object that matches the given name and locale.
|
void |
reset()
Deprecated.
Clears definitions.
|
void |
resolveInheritances()
Deprecated.
Resolves configuration inheritance properties.
|
void |
resolveInheritances(java.util.Locale locale)
Deprecated.
Resolves locale-specific configuration inheritance properties.
|
Definition getDefinition(java.lang.String name)
name
- The name of the Definition to return.void addDefinitions(java.util.Map<java.lang.String,Definition> defsMap)
defsMap
- The new definitions to add.NoSuchDefinitionException
- if a Definition extends from
one that doesn't exist.void addDefinitions(java.util.Map<java.lang.String,Definition> defsMap, java.util.Locale locale)
defsMap
- The new definitions to add.locale
- The locale to add the definitions to.NoSuchDefinitionException
- if a Definition extends from
one that doesn't exist.Definition getDefinition(java.lang.String name, java.util.Locale locale)
name
- The name of the Definition to return.locale
- The locale to use to resolve the definition.void resolveInheritances()
NoSuchDefinitionException
- If parent definitions are not found.void resolveInheritances(java.util.Locale locale)
locale
- The locale object to use.NoSuchDefinitionException
- If parent definitions are not found.void reset()
java.util.Map<java.lang.String,Definition> getBaseDefinitions()