KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > inf > iks > jvmai > jvmdi > DebuggerProvider


1 //
2
// This file is part of the prose package.
3
//
4
// The contents of this file are subject to the Mozilla Public License
5
// Version 1.1 (the "License"); you may not use this file except in
6
// compliance with the License. You may obtain a copy of the License at
7
// http://www.mozilla.org/MPL/
8
//
9
// 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 Developer of the Original Code is Andrei Popovici. Portions
17
// created by Andrei Popovici are Copyright (C) 2002 Andrei Popovici.
18
// All Rights Reserved.
19
//
20
// Contributor(s):
21
// $Id: DebuggerProvider.java,v 1.1.1.1 2003/07/02 15:30:50 apopovic Exp $
22
// =====================================================================
23
//
24
// (history at end)
25
//
26

27 package ch.ethz.inf.iks.jvmai.jvmdi;
28
29 // used packages/classes
30
import ch.ethz.jvmai.JVMAspectInterface;
31
32 import ch.ethz.jvmai.Provider;
33
34 /**
35
36  *
37  * @version $Revision: 1.1.1.1 $
38  * @author $Author: apopovic $
39  */

40 public
41 class DebuggerProvider extends Provider{
42
43     public DebuggerProvider()
44     {
45     super();
46     }
47
48     private static AspectInterfaceImpl daspect;
49
50     private static boolean isInitialized = false;
51     private static synchronized void idempotentInit()
52     {
53     if (!isInitialized)
54         {
55             daspect = new AspectInterfaceImpl();
56             isInitialized = true;
57         }
58     }
59
60     /**
61      * Returns the apect-interface of the jvmai-system supported by this provider.
62      */

63     public JVMAspectInterface getAspectInterface()
64     {
65     idempotentInit();
66     return daspect;
67     }
68
69
70 }
71
72 //======================================================================
73
//
74
// $Log: DebuggerProvider.java,v $
75
// Revision 1.1.1.1 2003/07/02 15:30:50 apopovic
76
// Imported from ETH Zurich
77
//
78
// Revision 1.5 2003/05/05 17:46:23 popovici
79
// Refactorization step (runes->prose) cleanup
80
//
81
// Revision 1.4 2003/04/30 20:16:24 popovici
82
// Changes for windows portability
83
//
84
// Revision 1.3 2003/03/04 11:26:32 popovici
85
// Important refactorization step (march):
86
// - removal of 'JoinPointEvents'; JoinPoints now have the same function as events
87
// - reimplementation of the JVMAIDebuggerAspectInterface (better performance, coding conventions, removal of ProseVM
88
// structures
89
//
90
// Revision 1.2 2002/03/28 13:48:13 popovici
91
// Mozilla-ified
92
//
93
// Revision 1.1 2002/02/06 11:53:49 popovici
94
// Refactoring from prose classical to jvmai
95
//
96
// Revision 1.2 2002/01/24 12:52:14 smarkwal
97
// Constructor is now 'protected'. Comments added.
98
//
99
// Revision 1.1 2001/12/14 15:01:19 smarkwal
100
// Initial Revision
101
//
102
Popular Tags