Class Environment


  • public class Environment
    extends java.lang.Object
    Infers information about the execution environment, e.g. security permissions. Package-protected API.
    • Constructor Summary

      Constructors 
      Constructor Description
      Environment()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static boolean isAllowedToModifyThreads()
      Deprecated. 
      static java.lang.Thread newThread​(java.util.concurrent.ThreadFactory factory, java.lang.Runnable runnable, java.lang.String name)  
      static java.lang.Thread newThread​(java.util.concurrent.ThreadFactory factory, java.lang.Runnable runnable, java.lang.String name, boolean isDaemon)  
      • Methods inherited from class java.lang.Object

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

      • Environment

        public Environment()
    • Method Detail

      • isAllowedToModifyThreads

        @Deprecated
        public static boolean isAllowedToModifyThreads()
        Deprecated.
        This method is deprecated and subject to removal in the next major release. There is no replacement for this method, as it used to use the SecurityManager, which is itself deprecated and subject to removal.
        Returns:
        always returns true
      • newThread

        public static java.lang.Thread newThread​(java.util.concurrent.ThreadFactory factory,
                                                 java.lang.Runnable runnable,
                                                 java.lang.String name)
      • newThread

        public static java.lang.Thread newThread​(java.util.concurrent.ThreadFactory factory,
                                                 java.lang.Runnable runnable,
                                                 java.lang.String name,
                                                 boolean isDaemon)