org.netbeans.bootstrap/1 2.52

org.netbeans
Class Events

java.lang.Object
  extended by org.netbeans.Events

public abstract class Events
extends Object

Track events that occur in the module system abstractly. A concrete implementation can provide localized messages for these, notify the user visually, track performance, etc. Only events relevant to the user or to performance need to be logged; detailed low-level descriptions of what is happening can simply be logged to the ErrorManager.


Field Summary
static String CANT_DELETE_ENABLED_AUTOLOAD
          Module autoload (or since org.netbeans.core/1 1.3, eager)
static String CLOSE
          no args
static String CREATED_MODULE_SYSTEM
          no args
static String DELETE_MODULE
          Module toDelete
static String EXTENSION_MULTIPLY_LOADED
          File extension, Set owners
static String FAILED_INSTALL_NEW
          Set notInstalled
static String FAILED_INSTALL_NEW_UNEXPECTED
          Module notInstalled, InvalidException problem
static String FINISH_AUTO_RESTORE
          Set toInstall
static String FINISH_CREATE_BOOT_MODULE
          Object history
static String FINISH_CREATE_REGULAR_MODULE
          File jar
static String FINISH_DEPLOY_TEST_MODULE
          File jar
static String FINISH_DISABLE_MODULES
          List toDisable
static String FINISH_ENABLE_MODULES
          List toEnable
static String FINISH_LOAD
          List loaded
static String FINISH_LOAD_BOOT_MODULES
          no args
static String FINISH_READ
          Set found
static String FINISH_UNLOAD
          List unloaded
static String INSTALL
          Module installed
static String LOAD_LAYERS
          Set modules
static String LOAD_SECTION
          Module home, ManifestSection section
static String MISC_PROP_MISMATCH
          Module afflicted, String propname, Object valueOnDisk, Object actualValue
static String MISSING_JAR_FILE
          File nonexistentJar
static String MODULES_FILE_PROCESSED
          FileObject
static String MODULES_FILE_SCANNED
          Integer
static String PATCH
          File patchfile
static String PERF_END
          String message
static String PERF_START
          String message
static String PERF_TICK
          String message
static String PREPARE
          Module prepared
static String RESTORE
          Module restored
static String START_AUTO_RESTORE
          Set toInstall
static String START_CREATE_BOOT_MODULE
          Object history
static String START_CREATE_REGULAR_MODULE
          File jar
static String START_DEPLOY_TEST_MODULE
          File jar
static String START_DISABLE_MODULES
          List toDisable
static String START_ENABLE_MODULES
          List toEnable
static String START_LOAD
          List loaded
static String START_LOAD_BOOT_MODULES
          no args
static String START_READ
          no args
static String START_UNLOAD
          List unloaded
static String UNINSTALL
          Module uninstalled
static String UNLOAD_LAYERS
          Set modules
static String UPDATE
          Module updated
static String WRONG_CLASS_LOADER
          Module culprit, Class offending, ClassLoader expected
 
Constructor Summary
protected Events()
          Constructor for subclasses to use.
 
Method Summary
 void log(String message, Object... args)
          Log an event.
protected abstract  void logged(String message, Object[] args)
          Report an event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERF_START

public static final String PERF_START
String message

See Also:
Constant Field Values

PERF_TICK

public static final String PERF_TICK
String message

See Also:
Constant Field Values

PERF_END

public static final String PERF_END
String message

See Also:
Constant Field Values

START_CREATE_REGULAR_MODULE

public static final String START_CREATE_REGULAR_MODULE
File jar

See Also:
Constant Field Values

FINISH_CREATE_REGULAR_MODULE

public static final String FINISH_CREATE_REGULAR_MODULE
File jar

See Also:
Constant Field Values

START_CREATE_BOOT_MODULE

public static final String START_CREATE_BOOT_MODULE
Object history

See Also:
Constant Field Values

FINISH_CREATE_BOOT_MODULE

public static final String FINISH_CREATE_BOOT_MODULE
Object history

See Also:
Constant Field Values

CREATED_MODULE_SYSTEM

public static final String CREATED_MODULE_SYSTEM
no args

See Also:
Constant Field Values

START_LOAD_BOOT_MODULES

public static final String START_LOAD_BOOT_MODULES
no args

See Also:
Constant Field Values

FINISH_LOAD_BOOT_MODULES

public static final String FINISH_LOAD_BOOT_MODULES
no args

See Also:
Constant Field Values

START_DEPLOY_TEST_MODULE

public static final String START_DEPLOY_TEST_MODULE
File jar

See Also:
Constant Field Values

FINISH_DEPLOY_TEST_MODULE

public static final String FINISH_DEPLOY_TEST_MODULE
File jar

See Also:
Constant Field Values

DELETE_MODULE

public static final String DELETE_MODULE
Module toDelete

See Also:
Constant Field Values

START_ENABLE_MODULES

public static final String START_ENABLE_MODULES
List toEnable

See Also:
Constant Field Values

FINISH_ENABLE_MODULES

public static final String FINISH_ENABLE_MODULES
List toEnable

See Also:
Constant Field Values

START_DISABLE_MODULES

public static final String START_DISABLE_MODULES
List toDisable

See Also:
Constant Field Values

FINISH_DISABLE_MODULES

public static final String FINISH_DISABLE_MODULES
List toDisable

See Also:
Constant Field Values

PREPARE

public static final String PREPARE
Module prepared

See Also:
Constant Field Values

START_LOAD

public static final String START_LOAD
List loaded

See Also:
Constant Field Values

FINISH_LOAD

public static final String FINISH_LOAD
List loaded

See Also:
Constant Field Values

START_UNLOAD

public static final String START_UNLOAD
List unloaded

See Also:
Constant Field Values

FINISH_UNLOAD

public static final String FINISH_UNLOAD
List unloaded

See Also:
Constant Field Values

INSTALL

public static final String INSTALL
Module installed

See Also:
Constant Field Values

UNINSTALL

public static final String UNINSTALL
Module uninstalled

See Also:
Constant Field Values

RESTORE

public static final String RESTORE
Module restored

See Also:
Constant Field Values

UPDATE

public static final String UPDATE
Module updated

See Also:
Constant Field Values

LOAD_SECTION

public static final String LOAD_SECTION
Module home, ManifestSection section

See Also:
Constant Field Values

CLOSE

public static final String CLOSE
no args

See Also:
Constant Field Values

START_READ

public static final String START_READ
no args

See Also:
Constant Field Values

FINISH_READ

public static final String FINISH_READ
Set found

See Also:
Constant Field Values

MODULES_FILE_PROCESSED

public static final String MODULES_FILE_PROCESSED
FileObject

See Also:
Constant Field Values

MODULES_FILE_SCANNED

public static final String MODULES_FILE_SCANNED
Integer

See Also:
Constant Field Values

START_AUTO_RESTORE

public static final String START_AUTO_RESTORE
Set toInstall

See Also:
Constant Field Values

FINISH_AUTO_RESTORE

public static final String FINISH_AUTO_RESTORE
Set toInstall

See Also:
Constant Field Values

FAILED_INSTALL_NEW

public static final String FAILED_INSTALL_NEW
Set notInstalled

See Also:
Constant Field Values

FAILED_INSTALL_NEW_UNEXPECTED

public static final String FAILED_INSTALL_NEW_UNEXPECTED
Module notInstalled, InvalidException problem

See Also:
Constant Field Values

LOAD_LAYERS

public static final String LOAD_LAYERS
Set modules

See Also:
Constant Field Values

UNLOAD_LAYERS

public static final String UNLOAD_LAYERS
Set modules

See Also:
Constant Field Values

WRONG_CLASS_LOADER

public static final String WRONG_CLASS_LOADER
Module culprit, Class offending, ClassLoader expected

See Also:
Constant Field Values

EXTENSION_MULTIPLY_LOADED

public static final String EXTENSION_MULTIPLY_LOADED
File extension, Set owners

See Also:
Constant Field Values

MISSING_JAR_FILE

public static final String MISSING_JAR_FILE
File nonexistentJar

See Also:
Constant Field Values

CANT_DELETE_ENABLED_AUTOLOAD

public static final String CANT_DELETE_ENABLED_AUTOLOAD
Module autoload (or since org.netbeans.core/1 1.3, eager)

See Also:
Constant Field Values

MISC_PROP_MISMATCH

public static final String MISC_PROP_MISMATCH
Module afflicted, String propname, Object valueOnDisk, Object actualValue

See Also:
Constant Field Values

PATCH

public static final String PATCH
File patchfile

See Also:
Constant Field Values
Constructor Detail

Events

protected Events()
Constructor for subclasses to use.

Method Detail

log

public final void log(String message,
                      Object... args)
Log an event. You must pass a fixed event type string, and a list of arguments (meaning varies according to event type). Note that the event type string must be the exact String listed as the constant in this class, not a copy.


logged

protected abstract void logged(String message,
                               Object[] args)
Report an event.


org.netbeans.bootstrap/1 2.52

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.