KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > api > debugger > jpda > AbstractDICookie


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.api.debugger.jpda;
21
22 import com.sun.jdi.VirtualMachine;
23 import com.sun.jdi.connect.IllegalConnectorArgumentsException;
24 import com.sun.jdi.connect.VMStartException;
25 import java.io.IOException JavaDoc;
26
27 /**
28  * Abstract ancestor of all {@link org.netbeans.api.debugger.DebuggerInfo}
29  * Cookies. DebuggerInfo Cookie is responsible for creating of new JPDA
30  * VirtualMachine.
31  *
32  * <br><br>
33  * <b>How to use it:</b>
34  * <pre style="background-color: rgb(255, 255, 153);">
35  * DebuggerInfo di = DebuggerInfo.create (
36  * "My First Debugger Info",
37  * new Object [] {
38  * abstractDICookieInstance
39  * }
40  * );
41  * DebuggerManager.getDebuggerManager ().startDebugging (di);</pre>
42  *
43  * @see AttachingDICookie
44  * @see LaunchingDICookie
45  * @see ListeningDICookie
46  *
47  * @author Jan Jancura
48  */

49 public abstract class AbstractDICookie {
50     
51     /**
52      * Creates a new instance of VirtualMachine for this DebuggerInfo Cookie.
53      *
54      * @return a new instance of VirtualMachine for this DebuggerInfo Cookie
55      * @throws java.net.ConnectException When a connection is refused
56      */

57     public abstract VirtualMachine getVirtualMachine () throws IOException JavaDoc,
58     IllegalConnectorArgumentsException, VMStartException;
59 }
60
Popular Tags