SystemModule

public class SystemModule extends Module

SystemModule is a module which contains some utility members which are common to a system.

Author:Hugo Y. K. Lam

Fields

dao

public final DAOFactory dao

The system DAO factory, having a component name ‘daofactory’.

log

public final Logger log

The system logger, having a component name ‘logger’.

messages

public final Messages messages

The system messages, having a component name ‘messages’.

properties

public final PropertySheet properties

The system properties, having a component name ‘properties’.

Constructors

SystemModule

public SystemModule(String descriptorLocation)

Creates a new instance of SystemModule.

Parameters:
  • descriptorLocation – the module descriptor.
Throws:
  • ModuleException – if errors encountered when loading the module descriptor.

SystemModule

public SystemModule(String descriptorLocation, boolean shouldInitialize)

Creates a new instance of SystemModule.

Parameters:
  • descriptorLocation – the module descriptor.
  • shouldInitialize – true if the module should be initialized.
Throws:
  • ModuleException – if errors encountered when loading the module descriptor.

SystemModule

public SystemModule(String descriptorLocation, ClassLoader loader)

Creates a new instance of SystemModule.

Parameters:
  • descriptorLocation – the module descriptor.
  • loader – the class loader for this module.
Throws:
  • ModuleException – if errors encountered when loading the module descriptor.

SystemModule

public SystemModule(String descriptorLocation, ClassLoader loader, boolean shouldInitialize)

Creates a new instance of SystemModule.

Parameters:
  • descriptorLocation – the module descriptor.
  • loader – the class loader for this module.
  • shouldInitialize – true if the module should be initialized.
Throws:
  • ModuleException – if errors encountered when loading the module descriptor.

Methods

getLogger

public Logger getLogger()

See also: hk.hku.cecid.piazza.commons.module.Module.getLogger()