ClassInfoProvider (EasyMock 5.5.0 API)
Date: 2024-11-17

org.easymock.internal.classinfoprovider

## Interface ClassInfoProvider

- All Known Implementing Classes:
    DefaultClassInfoProvider, JdkClassInfoProvider

      public interface ClassInfoProvider

  Tells where a mock should be created.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> ClassLoader` | `classLoader(Class<T> toMock)` Returns the class loader where the mock should be created.
    `String` | `classPackage(Class<?> toMock)` Returns the package where the mock should be created.

- - ### Method Detail

    - #### classPackage

          String classPackage(Class<?> toMock)

      Returns the package where the mock should be created.
      Parameters:
        `toMock` - the class to mock
      Returns:
        the package name

    - #### classLoader

          <T> ClassLoader classLoader(Class<T> toMock)

      Returns the class loader where the mock should be created.
      Type Parameters:
        `T` - type of the class to mock
      Parameters:
        `toMock` - the class to mock
      Returns:
        the class loader where the mock should be created

Copyright © 2001–2024 EasyMock contributors. All rights reserved.