IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.recorder.core.property
Class ConfigurationFactory

java.lang.Object
  extended by com.ibm.rational.test.lt.recorder.core.property.ConfigurationFactory
Direct Known Subclasses:
RecordingConfigurationFactory, TestgenConfigurationFactory

public abstract class ConfigurationFactory
extends Object

A factory used to instantiate AbstractTypedConfiguration from an XML document that was produced by the invocation of its AbstractConfiguration.write(java.io.OutputStream) method.


Field Summary
static String CONFIGURATION_FILE_NAME
          A string specifying the name of the file that the configuration was loaded from, if applicable.
 
Constructor Summary
ConfigurationFactory()
           
 
Method Summary
protected abstract  AbstractConfiguration createConfiguration(String protocol, String namespace, String name)
           
protected  AbstractConfiguration createForeignConfiguration(ConfigurationFactory foreignFactory, String protocol, String namespace, String name)
           
 AbstractConfiguration load(InputStream is)
           
 AbstractConfiguration load(InputStream is, String fileName)
           
 AbstractConfiguration load(String serialized)
           
 AbstractConfiguration load(String serialized, String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_FILE_NAME

public static final String CONFIGURATION_FILE_NAME
A string specifying the name of the file that the configuration was loaded from, if applicable. This property is optional. It is automatically set when a configuration is loaded from an XML file (no need to specify this property within the XML file).

See Also:
Constant Field Values
Constructor Detail

ConfigurationFactory

public ConfigurationFactory()
Method Detail

load

public AbstractConfiguration load(InputStream is)
                           throws ParserConfigurationException,
                                  SAXException,
                                  IOException
Throws:
ParserConfigurationException
SAXException
IOException

load

public AbstractConfiguration load(InputStream is,
                                  String fileName)
                           throws ParserConfigurationException,
                                  SAXException,
                                  IOException
Throws:
ParserConfigurationException
SAXException
IOException

load

public AbstractConfiguration load(String serialized)
                           throws ParserConfigurationException,
                                  SAXException,
                                  IOException
Throws:
ParserConfigurationException
SAXException
IOException

load

public AbstractConfiguration load(String serialized,
                                  String fileName)
                           throws ParserConfigurationException,
                                  SAXException,
                                  IOException
Throws:
ParserConfigurationException
SAXException
IOException

createConfiguration

protected abstract AbstractConfiguration createConfiguration(String protocol,
                                                             String namespace,
                                                             String name)

createForeignConfiguration

protected AbstractConfiguration createForeignConfiguration(ConfigurationFactory foreignFactory,
                                                           String protocol,
                                                           String namespace,
                                                           String name)

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.