equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
59 * JSSecurityManager public, which is considered worse. |
59 * JSSecurityManager public, which is considered worse. |
60 * |
60 * |
61 * @author Matthias Pfisterer |
61 * @author Matthias Pfisterer |
62 */ |
62 */ |
63 public final class JDK13Services { |
63 public final class JDK13Services { |
64 |
|
65 /** |
|
66 * Filename of the properties file for default provider properties. This |
|
67 * file is searched in the subdirectory "conf" of the JRE directory (this |
|
68 * behaviour is hardcoded). |
|
69 */ |
|
70 private static final String PROPERTIES_FILENAME = "sound.properties"; |
|
71 |
64 |
72 /** |
65 /** |
73 * Properties loaded from the properties file for default provider |
66 * Properties loaded from the properties file for default provider |
74 * properties. |
67 * properties. |
75 */ |
68 */ |
193 the properties bundle is empty. |
186 the properties bundle is empty. |
194 */ |
187 */ |
195 private static synchronized Properties getProperties() { |
188 private static synchronized Properties getProperties() { |
196 if (properties == null) { |
189 if (properties == null) { |
197 properties = new Properties(); |
190 properties = new Properties(); |
198 JSSecurityManager.loadProperties(properties, PROPERTIES_FILENAME); |
191 JSSecurityManager.loadProperties(properties); |
199 } |
192 } |
200 return properties; |
193 return properties; |
201 } |
194 } |
202 } |
195 } |