equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2017, 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 |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.jdi; |
26 package com.sun.jdi; |
27 |
27 |
|
28 import com.sun.jdi.connect.Connector; |
|
29 import com.sun.tools.jdi.VirtualMachineManagerImpl; |
|
30 |
28 /** |
31 /** |
29 * Initial class that provides access to the default implementation |
32 * Initial class that provides access to the default implementation |
30 * of JDI interfaces. A debugger application uses this class to access the |
33 * of JDI interfaces. A debugger application uses this class to access the |
31 * single instance of the {@link VirtualMachineManager} interface. |
34 * single instance of the {@link VirtualMachineManager} interface. |
32 * |
35 * |
38 |
41 |
39 /** |
42 /** |
40 * Returns the virtual machine manager. |
43 * Returns the virtual machine manager. |
41 * |
44 * |
42 * <p> May throw an unspecified error if initialization of the |
45 * <p> May throw an unspecified error if initialization of the |
43 * {@link com.sun.jdi.VirtualMachineManager} fails or if |
46 * {@link VirtualMachineManager} fails or if the virtual machine manager |
44 * the virtual machine manager is unable to locate or create |
47 * is unable to locate or create any {@link Connector Connectors}. |
45 * any {@link com.sun.jdi.connect.Connector Connectors}. |
|
46 * |
48 * |
47 * @throws java.lang.SecurityException if a security manager has been |
49 * @throws java.lang.SecurityException if a security manager has been |
48 * installed and it denies {@link JDIPermission} |
50 * installed and it denies {@link JDIPermission} |
49 * ("{@code virtualMachineManager}") or other unspecified |
51 * ("{@code virtualMachineManager}") or other unspecified |
50 * permissions required by the implementation. |
52 * permissions required by the implementation. |
51 */ |
53 */ |
52 static public synchronized VirtualMachineManager virtualMachineManager() { |
54 static public synchronized VirtualMachineManager virtualMachineManager() { |
53 return com.sun.tools.jdi.VirtualMachineManagerImpl.virtualMachineManager(); |
55 return VirtualMachineManagerImpl.virtualMachineManager(); |
54 } |
56 } |
55 } |
57 } |