/** * Package private constructor used by PackagePermissionCollection. * * @param name package name * @param mask action mask */ PackagePermission(String name, int mask) { super(name); setTransients(name, mask); this.bundle = null; }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(getName(), parseActions(actions)); }
/** * Creates a new requested {@code PackagePermission} object to be used by * code that must perform {@code checkPermission} for the {@code import} * action. {@code PackagePermission} objects created with this constructor * cannot be added to a {@code PackagePermission} permission collection. * * @param name The name of the requested package to import. * @param exportingBundle The bundle exporting the requested package. * @param actions The action {@code import}. * @throws IllegalArgumentException If the specified action is not * {@code import} or the name is a filter expression. * @since 1.5 */ public PackagePermission(String name, Bundle exportingBundle, String actions) { super(name); setTransients(name, parseActions(actions)); this.bundle = exportingBundle; if (exportingBundle == null) { throw new IllegalArgumentException("bundle must not be null"); } if (filter != null) { throw new IllegalArgumentException("invalid name"); } if ((action_mask & ACTION_ALL) != ACTION_IMPORT) { throw new IllegalArgumentException("invalid action string"); } }
/** * Package private constructor used by PackagePermissionCollection. * * @param name package name * @param mask action mask */ PackagePermission(String name, int mask) { super(name); setTransients(name, mask); this.bundle = null; }
/** * Package private constructor used by PackagePermissionCollection. * * @param name package name * @param mask action mask */ PackagePermission(String name, int mask) { super(name); setTransients(name, mask); this.bundle = null; }
/** * Package private constructor used by PackagePermissionCollection. * * @param name package name * @param mask action mask */ PackagePermission(String name, int mask) { super(name); setTransients(name, mask); this.bundle = null; }
/** * Package private constructor used by PackagePermissionCollection. * * @param name package name * @param mask action mask */ PackagePermission(String name, int mask) { super(name); setTransients(name, mask); this.bundle = null; }
/** * Package private constructor used by PackagePermissionCollection. * * @param name package name * @param mask action mask */ PackagePermission(String name, int mask) { super(name); setTransients(name, mask); this.bundle = null; }
/** * Package private constructor used by PackagePermissionCollection. * * @param name package name * @param mask action mask */ PackagePermission(String name, int mask) { super(name); setTransients(name, mask); this.bundle = null; }
/** * Package private constructor used by PackagePermissionCollection. * * @param name package name * @param mask action mask */ PackagePermission(String name, int mask) { super(name); setTransients(name, mask); this.bundle = null; }
/** * Package private constructor used by PackagePermissionCollection. * * @param name package name * @param mask action mask */ PackagePermission(String name, int mask) { super(name); setTransients(name, mask); this.bundle = null; }
/** * Package private constructor used by PackagePermissionCollection. * * @param name package name * @param mask action mask */ PackagePermission(String name, int mask) { super(name); setTransients(name, mask); this.bundle = null; }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(getName(), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(getName(), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(getName(), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(getName(), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(getName(), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(getName(), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(getName(), parseActions(actions)); }
/** * readObject is called to restore the state of this permission from a * stream. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); setTransients(getName(), parseActions(actions)); }