Interface Environment

All Known Implementing Classes:
ActivityEnvironment

public interface Environment
Interface representing the environment in which the current application is running. Models two key aspects of the application environment: profiles and properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determine whether the given Profiles predicate matches the active profiles — or in the case of no explicit active profiles, whether the given Profiles predicate matches the default profiles.
    boolean
    acceptsProfiles(String... profiles)
    Return whether one or more of the given profiles is active or, in the case of no explicit active profiles, whether one or more of the given profiles is included in the set of default profiles.
    void
    Add a profile to the current set of active profiles.
    Return the set of profiles explicitly made active for this environment.
    Return the set of profiles explicitly made active for this environment.
    Return the set of profiles to be active by default when no active profiles have been set explicitly.
    <T> T
    Returns the value of the property on environment via the currently available activity.
    <T> T
    getProperty(String name, Activity activity)
    Returns the value of the property on environment via the specified activity.
    boolean
    matchesProfiles(String profileExpression)
    Determine whether one of the given profile expressions matches the active profiles — or in the case of no explicit active profiles, whether one of the given profile expressions matches the default profiles.