org.specrunner.reuse.core
Class ReusableManagerImpl

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,IReusable<?>>
          extended by org.specrunner.reuse.core.ReusableManagerImpl
All Implemented Interfaces:
Serializable, Cloneable, Map<String,IReusable<?>>, IReuseManager

public class ReusableManagerImpl
extends HashMap<String,IReusable<?>>
implements IReuseManager

Default reusable 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>
 
Constructor Summary
ReusableManagerImpl()
           
 
Method Summary
 IReusable<?> put(String name, IReusable<?> resource)
           
 void remove(String name)
          Remove a reusable resource by name.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, 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 java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, values
 

Constructor Detail

ReusableManagerImpl

public ReusableManagerImpl()
Method Detail

put

public IReusable<?> put(String name,
                        IReusable<?> resource)
Specified by:
put in interface Map<String,IReusable<?>>
Overrides:
put in class HashMap<String,IReusable<?>>

remove

public void remove(String name)
Description copied from interface: IReuseManager
Remove a reusable resource by name.

Specified by:
remove in interface IReuseManager
Parameters:
name - The resource name.


Copyright © 2014. All rights reserved.