KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdi > internal > event > VMDisconnectEventImpl


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdi.internal.event;
12
13
14 import java.io.DataInputStream JavaDoc;
15
16 import org.eclipse.jdi.internal.MirrorImpl;
17 import org.eclipse.jdi.internal.VirtualMachineImpl;
18 import org.eclipse.jdi.internal.request.RequestID;
19
20 import com.sun.jdi.event.VMDisconnectEvent;
21
22 /**
23  * this class implements the corresponding interfaces
24  * declared by the JDI specification. See the com.sun.jdi package
25  * for more information.
26  *
27  */

28 public class VMDisconnectEventImpl extends EventImpl implements VMDisconnectEvent {
29     /** Jdwp Event Kind. */
30     public static final byte EVENT_KIND = EVENT_VM_DISCONNECTED;
31
32     /**
33      * Creates new VMDisconnectEventImpl.
34      */

35     public VMDisconnectEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) {
36         super("VMDisconnectEvent", vmImpl, requestID); //$NON-NLS-1$
37
}
38
39     /**
40      * @return Creates, reads and returns new EventImpl, of which requestID has already been read.
41      */

42     public static VMDisconnectEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream JavaDoc dataInStream) {
43         VirtualMachineImpl vmImpl = target.virtualMachineImpl();
44         VMDisconnectEventImpl event = new VMDisconnectEventImpl(vmImpl, requestID);
45         return event;
46     }
47 }
48
Popular Tags