01: //
02: // This file is part of the prose package.
03: //
04: // The contents of this file are subject to the Mozilla Public License
05: // Version 1.1 (the "License"); you may not use this file except in
06: // compliance with the License. You may obtain a copy of the License at
07: // http://www.mozilla.org/MPL/
08: //
09: // Software distributed under the License is distributed on an "AS IS" basis,
10: // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11: // for the specific language governing rights and limitations under the
12: // License.
13: //
14: // The Original Code is prose.
15: //
16: // The Initial Developers of the Original Code are Angela Nicoara and Gerald Linhofer.
17: // All Rights Reserved.
18: //
19: // Contributor(s):
20: // $Id$
21: // =====================================================================
22: //
23: // (history at end)
24: //
25:
26: package ch.ethz.prose;
27:
28: import ch.ethz.inf.util.Logger;
29: import ch.ethz.jvmai.JVMAspectInterface;
30: import ch.ethz.prose.engine.*;
31:
32: /**
33: * An aspect manager that uses the JVMDI/JVMTI class redefinition feauture (HotSwap).
34: *
35: * @version $Revision$
36: * @author Angela Nicoara
37: * @author Gerald Linhofer
38: */
39: public class LocalHotSwapAspectManager extends LocalAspectManager {
40:
41: public LocalHotSwapAspectManager(boolean isConnected,
42: JVMAspectInterface ai) {
43: super (isConnected, ai);
44: Logger.message("LocalHotSwapAspectManager started");
45: }
46:
47: protected void createJoinPointManager(boolean isConnected,
48: JVMAspectInterface ai) {
49: jpm = new HotSwapJoinPointManager(isConnected, ai, true);
50: }
51:
52: public void teardown() {
53: super .teardown();
54: // jpm.getAspectInterface().teardown();
55: // HotSwapAspectInterfaceImpl.getInstance().teardown();
56: // HotSwapFieldWeaver.resetAll();
57: // HotSwapClassWeaver.resetAll();
58: // HotSwapClassRegister.getInstance().reset();
59: }
60:
61: }
62:
63: //======================================================================
64: //
65: //$Log$
66: //
|