author | denis |
Wed, 27 Mar 2013 16:19:51 +0400 | |
changeset 16705 | 1caaa379eded |
parent 5506 | 202f599c92aa |
permissions | -rw-r--r-- |
3956
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
1 |
/* |
5506 | 2 |
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. |
3956
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
4 |
* |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
3956
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
3956
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
10 |
* |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
15 |
* accompanied this code). |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
16 |
* |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
20 |
* |
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
3956
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
24 |
*/ |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
25 |
|
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
26 |
package sun.awt; |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
27 |
|
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
28 |
import java.awt.AWTPermission; |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
29 |
import sun.security.util.PermissionFactory; |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
30 |
|
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
31 |
/** |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
32 |
* A factory object for AWTPermission objects. |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
33 |
*/ |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
34 |
|
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
35 |
public class AWTPermissionFactory |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
36 |
implements PermissionFactory<AWTPermission> |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
37 |
{ |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
38 |
@Override |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
39 |
public AWTPermission newPermission(String name) { |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
40 |
return new AWTPermission(name); |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
41 |
} |
2586d23078e4
6854954: Eliminate static dependency on java.awt.AWTPermission
alanb
parents:
diff
changeset
|
42 |
} |