KickJava   Java API By Example, From Geeks To Geeks.

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


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.VMDeathEvent;
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 VMDeathEventImpl extends EventImpl implements VMDeathEvent {
29     /** Jdwp Event Kind. */
30     public static final byte EVENT_KIND = EVENT_VM_DEATH;
31
32     /**
33      * Creates new VMDeathEventImpl.
34      */

35     public VMDeathEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) {
36         super("VMDeathEvent", 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 VMDeathEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream JavaDoc dataInStream) {
43         VirtualMachineImpl vmImpl = target.virtualMachineImpl();
44         VMDeathEventImpl event = new VMDeathEventImpl(vmImpl, requestID);
45         return event;
46     }
47 }
48
Popular Tags