org.jfree.report
Class Boot

java.lang.Object
  extended byorg.jfree.report.Boot

public final class Boot
extends java.lang.Object

An utility class to safely boot and initialize the JFreeReport library. This class should be called before using the JFreeReport classes, to make sure that all subsystems are initialized correctly and in the correct order.

Application developers should make sure, that the booting is done, before JFreeReport objects are used. Although the boot process will be started automaticly if needed, this automated start may no longer guarantee the module initialization order.

Additional modules can be specified by defining the system property "org.jfree.report.boot.Modules". The property expects a comma-separated list of Module implementations.

Author:
Thomas Morgner

Method Summary
static boolean isBootDone()
          Checks, whether the booting of JFreeReport is complete.
static boolean isBootInProgress()
          Checks, whether the booting of JFreeReport is in progress.
static boolean isStrictFP()
          This method returns true on non-strict floating point systems.
static void start()
          Starts the boot process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isBootInProgress

public static boolean isBootInProgress()
Checks, whether the booting of JFreeReport is in progress.

Returns:
true, if the booting is in progress, false otherwise.

isBootDone

public static boolean isBootDone()
Checks, whether the booting of JFreeReport is complete.

Returns:
true, if the booting is complete, false otherwise.

start

public static void start()
Starts the boot process. This method does nothing, if the booting is currently in progress or already done.


isStrictFP

public static boolean isStrictFP()
This method returns true on non-strict floating point systems.

Since Java1.2 VMs may implement the floating point arithmetics in a more performant way, which does not put the old strict constraints on the floating point types float and double

As iText and this library requires strict (in the sense of Java1.1) floating point operations, we have to test for that feature here.

The only known VM that seems to implement that feature is the JRockit VM. The strict mode can be restored on that VM by adding the "-Xstrictfp" VM parameter.

Returns:
true, if the VM uses strict floating points by default, false otherwise.