Package com.sap.platform.factory
Class SapCharonFactory
- java.lang.Object
-
- com.sap.platform.factory.SapCharonFactory
-
public class SapCharonFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SapCharonFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringbuildCacheKey(java.lang.String tenant, java.lang.String clientFileName)Helper method to build cache keyvoidclearCache()remove all clients from the cache<T> Tclient(java.lang.String tenant, java.lang.Class<T> clientType, java.util.Map<java.lang.String,java.lang.String> CECConfig, java.util.function.Function<com.hybris.charon.CharonBuilder<T>,T> builder)voidinValidateCache(java.lang.String key)Invalidate the cache for the given key
-
-
-
Method Detail
-
client
public <T> T client(java.lang.String tenant, java.lang.Class<T> clientType, java.util.Map<java.lang.String,java.lang.String> CECConfig, java.util.function.Function<com.hybris.charon.CharonBuilder<T>,T> builder)
-
inValidateCache
public void inValidateCache(java.lang.String key)
Invalidate the cache for the given key- Parameters:
key-
-
buildCacheKey
protected java.lang.String buildCacheKey(java.lang.String tenant, java.lang.String clientFileName)Helper method to build cache key- Parameters:
tenant-clientFileName-- Returns:
- CEC tenant + # + CEC client name
-
clearCache
public void clearCache()
remove all clients from the cache
-
-