net.jot
Class JOTInitializer

java.lang.Object
  extended by net.jot.JOTInitializer

public class JOTInitializer
extends java.lang.Object

This handles the initialization(and shutdown) of JOT. The init methos initialzes all the required objects for JOT to work, such as thr preferences manager, logger etc... In the case of a webapp, this will be called for you by JOTFilter (defined in web.xml) In the case of a Java app(not webapp), you HAVE TO call this manually: Call init() when you start your app (very first thing, befor you use any other JOT features) Call destroy() when you stop your app (last thing)

Author:
tcolar

Field Summary
static java.lang.String VERSION
           
 
Constructor Summary
JOTInitializer()
           
 
Method Summary
static void destroy()
          To be called on program exit Cleans up all resources (close open files, stop threads etc ...)
protected  void finalize()
          On dinalize we call destroy so that even if the user forgot to call it, we cleanup the resources anyhow.
static void init()
          Initializes JOT
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values
Constructor Detail

JOTInitializer

public JOTInitializer()
Method Detail

init

public static void init()
                 throws java.lang.Exception
Initializes JOT

Throws:
java.lang.Exception

destroy

public static void destroy()
To be called on program exit Cleans up all resources (close open files, stop threads etc ...)


finalize

protected void finalize()
                 throws java.lang.Throwable
On dinalize we call destroy so that even if the user forgot to call it, we cleanup the resources anyhow.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable