Interface RunMode


@Deprecated public interface RunMode
Deprecated.
Use org.apache.sling.settings.SlingSettingsService instead.
Define "run modes" for Sling, and allow components to find out if they're active according to the current set of run modes. A "run mode" is simply a string like "author", "dmz", "development",... The service does not validate their values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated.
    Wildcard for run modes, means "accept all modes"
    static final String
    Deprecated.
    Suggested name for the System property used to set run modes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Return the current set of active run modes
    boolean
    isActive(String[] runModes)
    Deprecated.
    True if at least one of the given runModes is contained in the set of current active run modes.
  • Field Details

    • RUN_MODES_SYSTEM_PROPERTY

      static final String RUN_MODES_SYSTEM_PROPERTY
      Deprecated.
      Suggested name for the System property used to set run modes. If that's used, the service should accept a comma-separated list of values, each defining one run mode.
      See Also:
    • RUN_MODE_WILDCARD

      static final String RUN_MODE_WILDCARD
      Deprecated.
      Wildcard for run modes, means "accept all modes"
      See Also:
  • Method Details

    • isActive

      boolean isActive(String[] runModes)
      Deprecated.
      True if at least one of the given runModes is contained in the set of current active run modes.
    • getCurrentRunModes

      String[] getCurrentRunModes()
      Deprecated.
      Return the current set of active run modes