jTracer  1.03
Stack trace visualization tool
org.libcsdbg.jtracer.Registry Class Reference

Configuration registry. More...

+ Inheritance diagram for org.libcsdbg.jtracer.Registry:
+ Collaboration diagram for org.libcsdbg.jtracer.Registry:

Public Member Functions

Object get (String section, String key)
 Get an entry. More...
 
boolean test (String section, String key)
 Get a boolean entry. More...
 
Enumeration getSectionKeys (String nm)
 Get all the keys of a section. More...
 
File getResource (String path) throws IOException
 Get a resource file. More...
 
ImageIcon loadIcon (String nm)
 Load an icon from the current theme. More...
 
void browse (URL url)
 Open a URL on the registered web browser. More...
 
void mail (URL url)
 Open a URL on the registered mail composer. More...
 
void setup () throws IOException
 Setup any process specific resources before the main application frame is launched. More...
 
Vector< Image > getProjectIcons ()
 Get a cross-platform set of project icons. More...
 

Static Public Member Functions

static Registry getCurrent ()
 Get the current registry. More...
 
static void setCurrent (Registry cur)
 Set the current registry. More...
 
static File getHomeDirectory () throws IOException
 Get the user home directory. More...
 
static File getPrefix () throws IOException
 Get the installation prefix. More...
 
static synchronized void debug (Throwable err)
 Output debug text for an exception. More...
 
static synchronized void debug (String msg)
 Output a debug message. More...
 
static String getOsName ()
 
static boolean isLinux ()
 

Static Private Attributes

static final long serialVersionUID = 0x00
 Class version. More...
 
static Registry current = null
 Current registry. More...
 

Detailed Description

Configuration registry.

A Registry object provides the application runtime configuration, organized per section. Every registry entry has a distinct section and key pair and a value. Current registry entries are static (hard coded), in future version they will be loaded from a hierarhical tree of XML configuration files

Todo:
Implement the loading from an XML file tree

Definition at line 41 of file Registry.java.


The documentation for this class was generated from the following file: