public class HldTradeProcessorNames extends Object implements org.beigesoft.holder.IHolderForClassByName<String>
Generic service that assign processor name for class and action name. The most trade processors doesn't need to map action to their name cause it (name) passed in request into dedicated TransactionalRequestHandler, e.g. PrcWebstoreStart, PrcAssignGoodsToCatalog.
| Constructor and Description |
|---|
HldTradeProcessorNames() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFor(Class<?> pClass,
String pThingName)
Get thing for given class and thing name.
|
void |
setFor(String pThing,
Class<?> pClass,
String pThingName)
Set thing for given class and thing name.
|
public final String getFor(Class<?> pClass, String pThingName)
Get thing for given class and thing name. findbugs: UG_SYNC_SET_UNSYNC_GET - this code is designed for high performance. Getting name is happened very frequency (e.g. 10 per second by multi-threads). Setting is seldom (e.g. hot change configuration to fix program bug) or may not be happen.
getFor in interface org.beigesoft.holder.IHolderForClassByName<String>pClass - a ClasspThingName - Thing NameCopyright © 2017–2018. All rights reserved.