JTR 5.0 API Documentation

jtr.config
Class RegisteredFactories

java.lang.Object
  extended by jtr.config.RegisteredFactories

public class RegisteredFactories
extends java.lang.Object

This class is in charge of registering into the JTR runtime configuration all those JTR pluggable component factories.

Since:
1.0
Version:
5.0
Author:
Francesco Russo (frusso@dev.java.net)

Field Summary
static java.lang.String IASSIGNMENT_POLICY_FACTORY
          Key necessary to set/obtain the factory in charge of instantiating IAssignmentPolicy concrete implementations.
static java.lang.String IOUTCOME_FACTORY
          Key necessary to set/obtain the factory in charge of instantiating IOutcomeFactory concrete implementations.
static java.lang.String ITEST_COMPLETION_LISTENER
          Key necessary to set/obtain the factory in charge of instantiating ITestCompletionListenerFactory concrete implementations.
static java.lang.String ITEST_RESULT_DISPLAYER
          Key necessary to set/obtain the factory in charge of instantiating ITestResultDisplayer concrete implementations.
static java.lang.String ITEST_RESULTS_EXPORTER
          Key necessary to set/obtain the factory in charge of instantiating ITestResultsExporterFactory concrete implementations.
static java.lang.String ITEST_SCRIPTING_ENGINE
          Key necessary to set/obtain the factory in charge of instantiating IScriptEngine concrete implementations.
static java.lang.String ITEST_SNAPSHOT_FACTORY
          Key necessary to set/obtain the factory in charge of instantiating ITestSnapshotFactory concrete implementations.
static java.lang.String ITEST_STAT_FUNCTIONS
           
static java.lang.String IWSHELPER_FACTORY
          Key necessary to set/obtain the factory in charge of instantiating IWsHelperFactory concrete implementations.
 
Constructor Summary
RegisteredFactories()
           
 
Method Summary
static IFactory getFactory(java.lang.String key)
          Returns the factory identified by the given key or null should the factory be unregistered.
static void registerFactory(java.lang.String key, IFactory instance)
          This method allow to register a new factory providing its instance rather than its FQN.
static void registerFactory(java.lang.String key, java.lang.String fqn)
          Registers a new factory identified by the provided key and represented by the provided FQN.
The key has to be one of the recognized values represented by the constant Strings defined by this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IASSIGNMENT_POLICY_FACTORY

public static final java.lang.String IASSIGNMENT_POLICY_FACTORY
Key necessary to set/obtain the factory in charge of instantiating IAssignmentPolicy concrete implementations.

See Also:
Constant Field Values

IOUTCOME_FACTORY

public static final java.lang.String IOUTCOME_FACTORY
Key necessary to set/obtain the factory in charge of instantiating IOutcomeFactory concrete implementations.

See Also:
Constant Field Values

IWSHELPER_FACTORY

public static final java.lang.String IWSHELPER_FACTORY
Key necessary to set/obtain the factory in charge of instantiating IWsHelperFactory concrete implementations.

See Also:
Constant Field Values

ITEST_RESULT_DISPLAYER

public static final java.lang.String ITEST_RESULT_DISPLAYER
Key necessary to set/obtain the factory in charge of instantiating ITestResultDisplayer concrete implementations.

See Also:
Constant Field Values

ITEST_COMPLETION_LISTENER

public static final java.lang.String ITEST_COMPLETION_LISTENER
Key necessary to set/obtain the factory in charge of instantiating ITestCompletionListenerFactory concrete implementations.

See Also:
Constant Field Values

ITEST_SNAPSHOT_FACTORY

public static final java.lang.String ITEST_SNAPSHOT_FACTORY
Key necessary to set/obtain the factory in charge of instantiating ITestSnapshotFactory concrete implementations.

See Also:
Constant Field Values

ITEST_RESULTS_EXPORTER

public static final java.lang.String ITEST_RESULTS_EXPORTER
Key necessary to set/obtain the factory in charge of instantiating ITestResultsExporterFactory concrete implementations.

See Also:
Constant Field Values

ITEST_SCRIPTING_ENGINE

public static final java.lang.String ITEST_SCRIPTING_ENGINE
Key necessary to set/obtain the factory in charge of instantiating IScriptEngine concrete implementations.

See Also:
Constant Field Values

ITEST_STAT_FUNCTIONS

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

RegisteredFactories

public RegisteredFactories()
Method Detail

registerFactory

public static void registerFactory(java.lang.String key,
                                   java.lang.String fqn)
                            throws RegistrationFailedException
Registers a new factory identified by the provided key and represented by the provided FQN.
The key has to be one of the recognized values represented by the constant Strings defined by this class.

Parameters:
key - String
fqn - String
Throws:
RegistrationFailedException

registerFactory

public static void registerFactory(java.lang.String key,
                                   IFactory instance)
This method allow to register a new factory providing its instance rather than its FQN.

Parameters:
key - String
instance - IFactory

getFactory

public static IFactory getFactory(java.lang.String key)
Returns the factory identified by the given key or null should the factory be unregistered.

Parameters:
key - String
Returns:
IFactory

The JTR Project is licensed under GPL version 2