From: Pavel V. <va...@us...> - 2002-08-21 13:04:50
|
Update of /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi In directory usw-pr-cvs1:/tmp/cvs-serv29972 Modified Files: Bootstrap.java Log Message: VirtualMachineManager renamed to ConnectorManager by michal Index: Bootstrap.java =================================================================== RCS file: /cvsroot/javaprofiler/jpi/net/sourceforge/javaprofiler/jpi/Bootstrap.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Bootstrap.java 2 Jul 2002 20:13:30 -0000 1.1 --- Bootstrap.java 21 Aug 2002 13:04:47 -0000 1.2 *************** *** 2,7 **** * Sun Public License Notice * ! * The contents of this file are subject to the Sun Public License Version ! * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * --- 2,7 ---- * Sun Public License Notice * ! * The contents of this file are subject to the Sun Public License Version ! * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * *************** *** 9,18 **** * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. ! * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. ! * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. ! * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. ! * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. ! * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. ! * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, --- 9,24 ---- * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. ! * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights ! Reserved. ! * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights ! Reserved. ! * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights ! Reserved. ! * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights ! Reserved. ! * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights ! Reserved. ! * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights ! Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, *************** *** 21,50 **** package net.sourceforge.javaprofiler.jpi; ! import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineManagerImpl; /** * Initial class that provides access to the default implementation of JPI * interfaces. A profiler application uses this class to access the single ! * instance of the {@link VirtualMachineManager} interface. * ! * @author Jan Stola */ public class Bootstrap extends Object { /** ! * Method for accessing implementation of the {@link VirtualMachineManager}. * ! * @return default implementation of the {@link VirtualMachineManager} interface. */ ! public static VirtualMachineManager virtualMachineManager() { ! return new VirtualMachineManagerImpl(); } - } /* * $Log$ * Revision 1.1 2002/07/02 20:13:30 stolis * Bootstrap class. * ! */ \ No newline at end of file --- 27,74 ---- package net.sourceforge.javaprofiler.jpi; ! import net.sourceforge.javaprofiler.jpi.connect.ConnectorManager; /** * Initial class that provides access to the default implementation of JPI * interfaces. A profiler application uses this class to access the single ! * instance of the {@link ConnectorManager} interface. * ! * @author Jan Stola, Michal Pise */ public class Bootstrap extends Object { + /** Field used to implement singleton pattern of class {@link + ConnectorManager}. */ + private static ConnectorManager manager; /** ! * Constructor has private access because there should be no Bootstrap ! instances. ! */ ! private Bootstrap() {} ! ! /** ! * Method for accessing implementation of the {@link ConnectorManager}. * ! * @return default implementation of the {@link ConnectorManager} interface. */ ! public static ConnectorManager connectorManager() { ! if ( manager == null) ! // workaround to enable standalone jpi compilation ! try { // FIXME ! manager = (ConnectorManager) Class.forName( ! "net.sourceforge.javaprofiler.jpiimpl.ConnectorManagerImpl").newInstance(); ! } catch ( Exception e) {} ! return manager; } } /* * $Log$ + * Revision 1.2 2002/08/21 13:04:47 vachis + * VirtualMachineManager renamed to ConnectorManager + * by michal + * * Revision 1.1 2002/07/02 20:13:30 stolis * Bootstrap class. * ! */ |