/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* Public for use by com.sun.jdi.Bootstrap */
new JDIPermission("virtualMachineManager");
}
synchronized (lock) {
vmm = new VirtualMachineManagerImpl();
}
}
return vmm;
}
protected VirtualMachineManagerImpl() {
/*
* Create a top-level thread group
*/
}
/*
* Load the connectors
*/
while (connectors.hasNext()) {
try {
} catch (ThreadDeath x) {
throw x;
} catch (Exception x) {
continue;
} catch (Error x) {
continue;
}
}
/*
* Load any transport services and encapsulate them with
* an attaching and listening connector.
*/
TransportService.class.getClassLoader());
while (transportServices.hasNext()) {
try {
} catch (ThreadDeath x) {
throw x;
} catch (Exception x) {
continue;
} catch (Error x) {
continue;
}
}
// no connectors found
throw new Error("no Connectors loaded");
}
// Set the default launcher. In order to be compatible
// 1.2/1.3/1.4 we try to make the default launcher
// "com.sun.jdi.CommandLineLaunch". If this connector
// isn't found then we arbitarly pick the first connector.
//
boolean found = false;
found = true;
break;
}
}
}
}
if (defaultConnector == null) {
throw new Error("no default LaunchingConnector");
}
return defaultConnector;
}
}
List<LaunchingConnector> launchingConnectors = new ArrayList<LaunchingConnector>(connectors.size());
if (connector instanceof LaunchingConnector) {
}
}
}
List<AttachingConnector> attachingConnectors = new ArrayList<AttachingConnector>(connectors.size());
if (connector instanceof AttachingConnector) {
}
}
}
List<ListeningConnector> listeningConnectors = new ArrayList<ListeningConnector>(connectors.size());
if (connector instanceof ListeningConnector) {
}
}
}
}
}
}
}
if (!connection.isOpen()) {
throw new IllegalStateException("connection is not open");
}
try {
++vmSequenceNumber);
} catch (VMDisconnectedException e) {
throw new IOException(e.getMessage());
}
return vm;
}
}
}
}
public int majorInterfaceVersion() {
return majorVersion;
}
public int minorInterfaceVersion() {
return minorVersion;
}
return mainGroupForJDI;
}
}
}
}