2015年7月6日星期一

Java AccessController.doPrivileged小记

接口为:PrivilegedAction和PrivilegedExceptionAction
String result= (String) AccessController.doPrivileged(new PrivilegedAction() {
                  public Object run() {
                        //do something
                         return something;
                 }
 });

参考:
http://blog.csdn.net/teamlet/article/details/1809165
http://www.blogjava.net/DLevin/archive/2012/11/02/390637.html
http://blog.csdn.net/zhang__jiayu/article/details/25654867


1 条评论: