Class RuntimeEnvironment


  • public class RuntimeEnvironment
    extends java.lang.Object
    Helps query the runtime environment.
    Since:
    3.15.0
    • Constructor Summary

      Constructors 
      Constructor Description
      RuntimeEnvironment()
      Deprecated.
      Will be removed in 4.0.0.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Boolean inContainer()
      Tests whether we are running in a container like Docker or Podman.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RuntimeEnvironment

        @Deprecated
        public RuntimeEnvironment()
        Deprecated.
        Will be removed in 4.0.0.
        Constructs a new instance.
    • Method Detail

      • inContainer

        public static java.lang.Boolean inContainer()
        Tests whether we are running in a container like Docker or Podman.
        Returns:
        whether we are running in a container like Docker or Podman.