KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > debug > core > IJavaHotCodeReplaceListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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.jdt.debug.core;
12
13
14 import org.eclipse.debug.core.DebugException;
15
16 /**
17  * Notification of hot code replace failure and success. As resources are
18  * modified in the workspace, targets that support hot code replace are
19  * updated with new class files.
20  * <p>
21  * Clients may implement this interface
22  * </p>
23  * @since 2.0
24  */

25 public interface IJavaHotCodeReplaceListener {
26
27     /**
28      * Notification that a hot code replace attempt failed in the given target.
29      *
30      * @param target the target in which the hot code replace failed
31      * @param exception the exception generated by the hot code replace
32      * failure, or <code>null</code> if the hot code replace failed because
33      * the target VM does not support hot code replace
34      */

35     public void hotCodeReplaceFailed(IJavaDebugTarget target, DebugException exception);
36     
37     /**
38      * Notification that a hot code replace attempt succeeded in the
39      * given target.
40      *
41      * @param target the target in which the hot code replace succeeded
42      */

43     public void hotCodeReplaceSucceeded(IJavaDebugTarget target);
44     
45     /**
46      * Notification that obsolete methods remain on the stack
47      * in one or more threads in the given target after a hot code
48      * replace.
49      *
50      * @param target the target in which obsolete methods remain after
51      * a hot code replace
52      */

53     public void obsoleteMethods(IJavaDebugTarget target);
54
55 }
56
57
Popular Tags