Class SapCharonFactory


  • public class SapCharonFactory
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String buildCacheKey​(java.lang.String tenant, java.lang.String clientFileName)
      Helper method to build cache key
      void clearCache()
      remove all clients from the cache
      <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)  
      void inValidateCache​(java.lang.String key)
      Invalidate the cache for the given key
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SapCharonFactory

        public SapCharonFactory()
    • 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