Interface ActiveProfilesResolver

  • All Known Implementing Classes:
    DefaultActiveProfilesResolver
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ActiveProfilesResolver
    Strategy interface for programmatically resolving which active bean definition profiles should be used when loading an ApplicationContext for a test class.

    A custom ActiveProfilesResolver can be registered via the resolver attribute of @ActiveProfiles.

    Concrete implementations must provide a public no-args constructor.

    Since:
    4.0
    Author:
    Sam Brannen, Michail Nikolaev
    See Also:
    ActiveProfiles