Package org.jboss.weld.util
Class AccessControllers
- java.lang.Object
-
- org.jboss.weld.util.AccessControllers
-
public class AccessControllers extends Object
Utils for working with PrivilegedActions, PrivilegedActionExceptions and AccessControllers.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> PrivilegedAction<T>
action(PrivilegedAction<T> action)
Removes the ambiguity betweenPrivilegedAction
andPrivilegedExceptionAction
that normally occurs when a lambda is passed toAccessController#doPrivileged()
-
-
-
Method Detail
-
action
public static <T> PrivilegedAction<T> action(PrivilegedAction<T> action)
Removes the ambiguity betweenPrivilegedAction
andPrivilegedExceptionAction
that normally occurs when a lambda is passed toAccessController#doPrivileged()
-
-