1 7 8 package java.lang.management; 9 10 67 68 public final class ManagementPermission extends java.security.BasicPermission { 69 70 76 public ManagementPermission(String name) { 77 super(name); 78 if (!name.equals("control") && !name.equals("monitor")) { 79 throw new IllegalArgumentException ("name: " + name); 80 } 81 } 82 83 90 public ManagementPermission(String name, String actions) 91 throws IllegalArgumentException { 92 super(name); 93 if (!name.equals("control") && !name.equals("monitor")) { 94 throw new IllegalArgumentException ("name: " + name); 95 } 96 if (actions != null && actions.length() > 0) { 97 throw new IllegalArgumentException ("actions: " + actions); 98 } 99 } 100 } 101 | Popular Tags |