org.apache.tapestry5.internal.services

## Interface ComponentClassCache

- All Known Implementing Classes:
    ComponentClassCacheImpl

      public interface ComponentClassCache

  A cache for converting between class names and component (or other) classes. For component classes, ensures that the class is the transformed class.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `defaultValueForType(String className)` Computes the default value for a field of the given type, returns the appropriate default value.
    `Class` | `forName(String className)` Gets the Class instance for the given fully-qualified class name.

- - ### Method Detail

    - #### forName

          Class forName(String className)

      Gets the Class instance for the given fully-qualified class name.
      Parameters:
        `className` - fully qualified class name, or a primitive type name, or an array name (in source format)
      Returns:
        the class instance

    - #### defaultValueForType

          Object defaultValueForType(String className)

      Computes the default value for a field of the given type, returns the appropriate default value. This is typically null, but may be false (for a primitive boolean) or some version of 0 (for a primitive numeric field). Wrapper types will still be null.
      Parameters:
        `className` - type of field
      Since:
        5.2.0

5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.