Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.jorphan.timer
Class TimerFactory  view TimerFactory download TimerFactory.java

java.lang.Object
  extended byorg.apache.jorphan.timer.TimerFactory

public final class TimerFactory
extends java.lang.Object

This non-instantiable non-extendible class acts as a Factory for ITimer implementations.

Version:
$Revision: 1.4 $

Constructor Summary
private TimerFactory()
          Private default constructor to prevent instantiation.
 
Method Summary
static ITimer newTimer()
          Creates a new instance of ITimer which is returned in 'ready' state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerFactory

private TimerFactory()
Private default constructor to prevent instantiation.

Method Detail

newTimer

public static ITimer newTimer()
Creates a new instance of ITimer which is returned in 'ready' state. If the JNI-based/high-resolution implementation is not available this will return an instance of JavaSystemTimer, so this method is guaranteed not to fail.