//
// This file is part of the prose package.
//
// The contents of this file are subject to the Mozilla Public License
// Version 1.1 (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/
//
// Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
// for the specific language governing rights and limitations under the
// License.
//
// The Original Code is prose.
//
// The Initial Developer of the Original Code is Andrei Popovici. Portions
// created by Andrei Popovici are Copyright (C) 2002 Andrei Popovici.
// All Rights Reserved.
//
// Contributor(s):
// $Id: DebuggerProvider.java,v 1.1.1.1 2003/07/02 15:30:50 apopovic Exp $
// =====================================================================
//
// (history at end)
//
package ch.ethz.inf.iks.jvmai.jvmdi;
// used packages/classes
import ch.ethz.jvmai.JVMAspectInterface;
import ch.ethz.jvmai.Provider;
/**
*
* @version $Revision: 1.1.1.1 $
* @author $Author: apopovic $
*/
public
class DebuggerProvider extends Provider{
public DebuggerProvider()
{
super();
}
private static AspectInterfaceImpl daspect;
private static boolean isInitialized = false;
private static synchronized void idempotentInit()
{
if (!isInitialized)
{
daspect = new AspectInterfaceImpl();
isInitialized = true;
}
}
/**
* Returns the apect-interface of the jvmai-system supported by this provider.
*/
public JVMAspectInterface getAspectInterface()
{
idempotentInit();
return daspect;
}
}
//======================================================================
//
// $Log: DebuggerProvider.java,v $
// Revision 1.1.1.1 2003/07/02 15:30:50 apopovic
// Imported from ETH Zurich
//
// Revision 1.5 2003/05/05 17:46:23 popovici
// Refactorization step (runes->prose) cleanup
//
// Revision 1.4 2003/04/30 20:16:24 popovici
// Changes for windows portability
//
// Revision 1.3 2003/03/04 11:26:32 popovici
// Important refactorization step (march):
// - removal of 'JoinPointEvents'; JoinPoints now have the same function as events
// - reimplementation of the JVMAIDebuggerAspectInterface (better performance, coding conventions, removal of ProseVM
// structures
//
// Revision 1.2 2002/03/28 13:48:13 popovici
// Mozilla-ified
//
// Revision 1.1 2002/02/06 11:53:49 popovici
// Refactoring from prose classical to jvmai
//
// Revision 1.2 2002/01/24 12:52:14 smarkwal
// Constructor is now 'protected'. Comments added.
//
// Revision 1.1 2001/12/14 15:01:19 smarkwal
// Initial Revision
//
|