Package wt.method

Class MethodContext.AccessControlByPass

java.lang.Object
wt.method.MethodContext.AccessControlByPass
All Implemented Interfaces:
AutoCloseable
Enclosing class:
MethodContext

public static final class MethodContext.AccessControlByPass extends Object implements AutoCloseable
AutoCloseable implementation for by-passing access control for a clearly delimited scope, restoring the previous access control enforcement state upon leaving this scope. Usage:
    try ( AccessControlByPass accessControlByPass = new AccessControlByPass() )
    {
      ... do various operations with access control by-passed ...
      ... previous access control enforcement state is always restored when leaving this scope ...
    }
  


Supported API: true
Extendable: false