Class CharonFactory
java.lang.Object
de.hybris.platform.apiregistryservices.factory.impl.CharonFactory
- All Implemented Interfaces:
ClientFactory
The CharonFactory generates charon client instances
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCacheKey(ConsumedDestinationModel destination) Helper method to build cache key which holds client proxy.protected StringbuildCacheKey(String credentialId, String clientFileName) Deprecated, for removal: This API element is subject to removal in a future version.since 1811.1.voidRemove all clients from the cache<T> TGenerates a client proxy for the given client typeprotected ConcurrentHashMap<String,Object> getCache()voidinValidateCache(String key) Invalidate the cache for the given key
-
Constructor Details
-
CharonFactory
public CharonFactory()
-
-
Method Details
-
client
Description copied from interface:ClientFactoryGenerates a client proxy for the given client type- Specified by:
clientin interfaceClientFactory- Type Parameters:
T- the type of the client- Parameters:
cacheKey- the id of the clientclientType- the class of client typeclientConfig- the map consist of configurations of client- Returns:
- the client proxy
-
inValidateCache
Invalidate the cache for the given key- Specified by:
inValidateCachein interfaceClientFactory- Parameters:
key- the key of client
-
buildCacheKey
@Deprecated(since="1811", forRemoval=true) protected String buildCacheKey(String credentialId, String clientFileName) Deprecated, for removal: This API element is subject to removal in a future version.since 1811.1. Please use buildCacheKey method ofClientFactoryHelper method to build cache key which holds client proxy.- Parameters:
credentialId- the id of credentialclientFileName- name of the client- Returns:
- cache key string
-
buildCacheKey
Description copied from interface:ClientFactoryHelper method to build cache key which holds client proxy.- Specified by:
buildCacheKeyin interfaceClientFactory- Parameters:
destination- consumed destination of the client- Returns:
- cache key string
-
clearCache
public void clearCache()Remove all clients from the cache- Specified by:
clearCachein interfaceClientFactory
-
getCache
-