org.specrunner.source.core
Class SourceFactoryManagerImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,T>
org.specrunner.util.mapping.core.MappingManagerImpl<ISourceFactory>
org.specrunner.source.core.SourceFactoryManagerImpl
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,ISourceFactory>, ISourceFactoryManager, IMappingManager<ISourceFactory>
public class SourceFactoryManagerImpl
- extends MappingManagerImpl<ISourceFactory>
- implements ISourceFactoryManager
Default implementation for a source manager. Get the source factory based on
file extension type.
- Author:
- Thiago Santos
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, put, putAll, remove, size, values |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, put, putAll, remove, size, values |
SourceFactoryManagerImpl
public SourceFactoryManagerImpl()
- Default constructor.
keySet
public Set<String> keySet()
- Specified by:
keySet in interface Map<String,ISourceFactory>- Overrides:
keySet in class MappingManagerImpl<ISourceFactory>
newSource
public ISource newSource(Object source)
throws SourceException
- Description copied from interface:
ISourceFactoryManager
- Get an instance of a source factory compatible with the given source.
- Specified by:
newSource in interface ISourceFactoryManager
- Parameters:
source - The specification source object.
- Returns:
- A source factory.
- Throws:
SourceException - If a reader for source cannot be found.
Copyright © 2014. All rights reserved.