Microsoft SDK for Java

adjustPermission

This method of the ThreadPermission Class adjusts the ThreadPermission object with some run-time state.

Syntax

public void adjustPermission(String tag, Object adjustment);

Parameters

tag The adjustment type. Any value other than "threadgroup" is ignored.
adjustment This parameter must be an instance of java.lang.ThreadGroup. It indicates a portion of the thread group space.

Remarks

The ThreadPermission object only responds to the "threadgroup" adjustment type, and it expects the adjustment parameter to be a ThreadGroup object (in that case). All other adjustment types are ignored.

Usually, a ThreadPermission object allows unrestricted thread and thread group access within a specific ThreadGroup. However, this method can be called to allow a loader to grant some loaded code (an applet, for example) a portion of the thread group space in which it can perform threading operations.

Note   The "threadgroup" adjustment to a ThreadPermission object is equivalent to explicitly calling the setAllowedThreadGroup method.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.