com.borland.primetime.runtime
Class RuntimeManager

java.lang.Object
  |
  +--com.borland.primetime.runtime.RuntimeManager

public class RuntimeManager
extends java.lang.Object

Serves as a static registry for all available Runner objects.


Method Summary
static Runner getRunner(java.lang.String name)
          Searches for a registered Runner instance by name.
static Runner[] getRunners()
          Gets a complete list of all registered Runner instances.
static void registerRunner(Runner runner)
          Registers an instance of a class that implements the Runner interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerRunner

public static void registerRunner(Runner runner)
Registers an instance of a class that implements the Runner interface. The instance is queried to determine its name for registration, and name collisions are resolved by replacing prior registrants with newer ones.

getRunners

public static Runner[] getRunners()
Gets a complete list of all registered Runner instances.
Returns:
An array of all registered Runner instances, or an empty array if none have been registered.

getRunner

public static Runner getRunner(java.lang.String name)
Searches for a registered Runner instance by name.
Parameters:
name - The name of the desired Runner.
Returns:
The Runner instance with a matching name, or null if no such Runner is registered.