net.sourceforge.atunes.kernel
Class Kernel

java.lang.Object
  extended by net.sourceforge.atunes.kernel.Kernel

public class Kernel
extends java.lang.Object

The Kernel is the class responsible of create and interconnect all modules of aTunes.


Field Summary
static boolean DEBUG
          Defines if aTunes is running in debug mode.
static boolean IGNORE_LOOK_AND_FEEL
          Defines if aTunes will ignore look and feel.
static boolean NO_UPDATE
          Defines if aTunes should not try to update (for Linux packages).
 ApplicationState state
          Application State of aTunes.
 
Constructor Summary
protected Kernel()
          Constructor of Kernel.
 
Method Summary
 void finish()
          Called when closing application
static Kernel getInstance()
          Getter of the Kernel instance.
 void restart()
          Called when restarting application
static void startKernel(java.util.List<java.lang.String> args)
          Static method to create the Kernel instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG
Defines if aTunes is running in debug mode.


IGNORE_LOOK_AND_FEEL

public static boolean IGNORE_LOOK_AND_FEEL
Defines if aTunes will ignore look and feel.


NO_UPDATE

public static boolean NO_UPDATE
Defines if aTunes should not try to update (for Linux packages).


state

public ApplicationState state
Application State of aTunes.

Constructor Detail

Kernel

protected Kernel()
Constructor of Kernel.

Method Detail

getInstance

public static Kernel getInstance()
Getter of the Kernel instance.

Returns:
Kernel

startKernel

public static void startKernel(java.util.List<java.lang.String> args)
Static method to create the Kernel instance. This method starts the application, so should be called from the main method of the application.

Parameters:
args - the args

finish

public void finish()
Called when closing application


restart

public void restart()
Called when restarting application



Copyright © 2006-2008 The aTunes Team. All Rights Reserved.