org.specrunner.concurrency.core
Class ConcurrentMappingImpl
java.lang.Object
org.specrunner.concurrency.core.ConcurrentMappingImpl
- All Implemented Interfaces:
- IConcurrentMapping
public class ConcurrentMappingImpl
- extends Object
- implements IConcurrentMapping
Default implementation of IConcurrentMapping, returns a String concatenated
with thread name, does not matter the resource name.
- Author:
- Thiago Santos.
|
Method Summary |
Object |
get(String name,
Object value)
Given a resource name and the original one, return a concurrent version
of this resource. |
String |
getThread()
Get the thread name normalized. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConcurrentMappingImpl
public ConcurrentMappingImpl()
get
public Object get(String name,
Object value)
- Description copied from interface:
IConcurrentMapping
- Given a resource name and the original one, return a concurrent version
of this resource.
- Specified by:
get in interface IConcurrentMapping
- Parameters:
name - The resource name.value - The resource value.
- Returns:
- The changed resource.
getThread
public String getThread()
- Description copied from interface:
IConcurrentMapping
- Get the thread name normalized.
- Specified by:
getThread in interface IConcurrentMapping
- Returns:
- The thread name.
Copyright © 2014. All rights reserved.