public class CharonFactory extends java.lang.Object implements ClientFactory
| Constructor and Description |
|---|
CharonFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
buildCacheKey(java.lang.String credentialId,
java.lang.String clientFileName)
Helper method to build cache key which holds client proxy.
|
void |
clearCache()
Remove all clients from the cache
|
<T> T |
client(java.lang.String cacheKey,
java.lang.Class<T> clientType,
java.util.Map<java.lang.String,java.lang.String> clientConfig)
Generates a client proxy for the given client type
|
void |
inValidateCache(java.lang.String key)
Invalidate the cache for the given key
|
public <T> T client(java.lang.String cacheKey,
java.lang.Class<T> clientType,
java.util.Map<java.lang.String,java.lang.String> clientConfig)
ClientFactoryclient in interface ClientFactoryT - the type of the clientcacheKey - the id of the clientclientType - the class of client typeclientConfig - the map consist of configurations of clientpublic void inValidateCache(java.lang.String key)
inValidateCache in interface ClientFactorykey - the key of clientprotected java.lang.String buildCacheKey(java.lang.String credentialId,
java.lang.String clientFileName)
credentialId - the id of credentialclientFileName - name of the clientpublic void clearCache()
clearCache in interface ClientFactoryCopyright © 2018 SAP SE. All Rights Reserved.