Package org.apache.tapestry5.internal

## Class ComponentOverrideImpl

- java.lang.Object
- - org.apache.tapestry5.internal.ComponentOverrideImpl

- All Implemented Interfaces:
    `ComponentOverride`

      public class ComponentOverrideImpl
      extends java.lang.Object
      implements ComponentOverride

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ComponentOverrideImpl​(java.util.Map<java.lang.Class,​java.lang.Class> contributions, org.slf4j.Logger logger)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.Class` | `getReplacement​(java.lang.String className)` | Returns the replacement for a class given its name.
    `boolean` | `hasReplacements()` | Returns true if the service configuration is non-empty.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ComponentOverrideImpl

          public ComponentOverrideImpl​(java.util.Map<java.lang.Class,​java.lang.Class> contributions,
                                       org.slf4j.Logger logger)

  - ### Method Detail

    - #### hasReplacements

          public boolean hasReplacements()

      Description copied from interface: `ComponentOverride`
      Returns true if the service configuration is non-empty.
      Specified by:
        `hasReplacements` in interface `ComponentOverride`

    - #### getReplacement

          public java.lang.Class getReplacement​(java.lang.String className)

      Description copied from interface: `ComponentOverride`
      Returns the replacement for a class given its name.
      Specified by:
        `getReplacement` in interface `ComponentOverride`
      Parameters:
        `className` - the fully qualified class name.
      Returns:
        a `Class` or null.