home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet News 1998 November
/
InternetNews_1998_11.iso
/
pc
/
Java
/
Corso
/
SingletonApplication.java
< prev
Wrap
Text File
|
1998-11-22
|
1KB
|
53 lines
/*
** Program: [application name]
** Version: [version]
** Author: [author name]
** Address: [e-mail address]
** Created on: [date of creation]
** Modified on: [date of last modification]
** Language: Java (jdk [version])
** -------------------------------------------------------------
** (c) 1998 - All rights reserved
** -------------------------------------------------------------
** I make no representations or warranties about the suitability of
** the software, either express or implied, including but not limited
** to the implied warranties of merchantability, fitness for a
** particular purpose, or non-infringement. I shall not be liable for
** any damages suffered by licensee as a result of using, modifying or
** distributing this software or its derivatives.
** -------------------------------------------------------------
** Permission to use, copy, and distribute this software for
** NON-COMMERCIAL purposes and without fee is hereby granted
** provided that this copyright notice appears in all copies.
*/
class ApplicationClass
{
private static ApplicationClass cvSingleton ;
public static void main( String[] args )
{
create( ) ;
}
public static void create( )
{
if ( cvSingleton == null )
{
cvSingleton = new ApplicationClass( ) ;
}
}
public static void destroy( )
{
cvSingleton = null ;
}
private ApplicationClass( )
{
// Application body
}
}