org.specrunner.result.core
Class WritableFactoryManagerImpl

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,T>
          extended by org.specrunner.util.mapping.core.MappingManagerImpl<IWritableFactory<?>>
              extended by org.specrunner.result.core.WritableFactoryManagerImpl
All Implemented Interfaces:
Serializable, Cloneable, Map<String,IWritableFactory<?>>, IWritableFactoryManager, IMappingManager<IWritableFactory<?>>

public class WritableFactoryManagerImpl
extends MappingManagerImpl<IWritableFactory<?>>
implements IWritableFactoryManager

Default writable manager implementation.

Author:
Thiago Santos
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.specrunner.util.mapping.core.MappingManagerImpl
initialized
 
Fields inherited from interface org.specrunner.util.mapping.IMappingManager
DEFAULT_NAME
 
Constructor Summary
WritableFactoryManagerImpl()
          Default constructor.
 
Method Summary
<T> IWritableFactory<T>
get(Class<T> type)
          Gets a writable factory by type.
 
Methods inherited from class org.specrunner.util.mapping.core.MappingManagerImpl
bind, get, getDefault, initialize, keySet, normalizeKey, setDefault
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.specrunner.util.mapping.IMappingManager
bind, getDefault, setDefault
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

WritableFactoryManagerImpl

public WritableFactoryManagerImpl()
Default constructor.

Method Detail

get

public <T> IWritableFactory<T> get(Class<T> type)
Description copied from interface: IWritableFactoryManager
Gets a writable factory by type.

Specified by:
get in interface IWritableFactoryManager
Type Parameters:
T - The object source type.
Parameters:
type - The type of object to be used for writable creation.
Returns:
A factory, if it exists, null, otherwise.


Copyright © 2014. All rights reserved.