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 java.lang.String RUN_MODE_WILDCARD
      Deprecated.
      Wildcard for run modes, means "accept all modes"
      static java.lang.String RUN_MODES_SYSTEM_PROPERTY
      Deprecated.
      Suggested name for the System property used to set run modes.
    • Field Detail

      • RUN_MODES_SYSTEM_PROPERTY

        static final java.lang.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:
        Constant Field Values
      • RUN_MODE_WILDCARD

        static final java.lang.String RUN_MODE_WILDCARD
        Deprecated.
        Wildcard for run modes, means "accept all modes"
        See Also:
        Constant Field Values
    • Method Detail

      • isActive

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

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