java.lang.Object
de.hybris.platform.apiregistryservices.factory.impl.CharonFactory
All Implemented Interfaces:
ClientFactory

public class CharonFactory extends Object implements ClientFactory
The CharonFactory generates charon client instances
  • Constructor Details

    • CharonFactory

      public CharonFactory()
  • Method Details

    • client

      public <T> T client(String cacheKey, Class<T> clientType, Map<String,String> clientConfig)
      Description copied from interface: ClientFactory
      Generates a client proxy for the given client type
      Specified by:
      client in interface ClientFactory
      Type Parameters:
      T - the type of the client
      Parameters:
      cacheKey - the id of the client
      clientType - the class of client type
      clientConfig - the map consist of configurations of client
      Returns:
      the client proxy
    • inValidateCache

      public void inValidateCache(String key)
      Invalidate the cache for the given key
      Specified by:
      inValidateCache in interface ClientFactory
      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 of ClientFactory
      Helper method to build cache key which holds client proxy.
      Parameters:
      credentialId - the id of credential
      clientFileName - name of the client
      Returns:
      cache key string
    • buildCacheKey

      public String buildCacheKey(ConsumedDestinationModel destination)
      Description copied from interface: ClientFactory
      Helper method to build cache key which holds client proxy.
      Specified by:
      buildCacheKey in interface ClientFactory
      Parameters:
      destination - consumed destination of the client
      Returns:
      cache key string
    • clearCache

      public void clearCache()
      Remove all clients from the cache
      Specified by:
      clearCache in interface ClientFactory
    • getCache

      protected ConcurrentHashMap<String,Object> getCache()