org.apache.tiles.core.definition.dao

## Interface DefinitionDAO<K>

- Type Parameters:
    `K` - The customization key class.
  All Known Implementing Classes:
    BaseLocaleUrlDefinitionDAO, CachingLocaleUrlDefinitionDAO, ResolvingLocaleUrlDefinitionDAO

      public interface DefinitionDAO<K>

  It represents an object that provides definitions, depending on a customization key.
  Since:
    2.1.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Definition` | `getDefinition(String name, K customizationKey)` Returns a definition, given its name and the customization key.
    `Map<String,Definition>` | `getDefinitions(K customizationKey)` Returns all the definitions used of a customization key.

- - ### Method Detail

    - #### getDefinition

          Definition getDefinition(String name,
                                   K customizationKey)

      Returns a definition, given its name and the customization key.
      Parameters:
        `name` - The name of the definition.
        `customizationKey` - The customization key.
      Returns:
        The requested definition, if found, otherwise `null`. The inheritance of the definition must not be resolved.
      Since:
        2.1.0

    - #### getDefinitions

          Map<String,Definition> getDefinitions(K customizationKey)

      Returns all the definitions used of a customization key.
      Parameters:
        `customizationKey` - The customization key.
      Returns:
        All the definitions that are connected to the customization key. The inheritance of the definitions must not be resolved.
      Since:
        2.1.0

Copyright © 2000–2023 Apache Software Foundation. All rights reserved.