Class FileSource
- java.lang.Object
-
- com.adaptris.tester.runtime.services.sources.FileSource
-
- All Implemented Interfaces:
ParentSource
,Source
- Direct Known Subclasses:
DefaultConfigSource
@ComponentProfile(summary="A file source for the adapter or service config") public class FileSource extends java.lang.Object implements ParentSource
In the service test configuration this class is aliased as
file-source
which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description FileSource()
FileSource(java.lang.String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFile()
Location of the XML configuration filejava.lang.String
getSource(ServiceTestConfig config)
void
setFile(java.lang.String file)
Location of the XML configuration file
-
-
-
Method Detail
-
getSource
public java.lang.String getSource(ServiceTestConfig config) throws SourceException
- Specified by:
getSource
in interfaceSource
- Throws:
SourceException
-
setFile
public void setFile(java.lang.String file)
Location of the XML configuration file- Parameters:
file
-
-
getFile
public java.lang.String getFile()
Location of the XML configuration file- Returns:
- file
-
-