Class AccessExternalClientFactory

java.lang.Object
fr.gouv.vitam.common.external.client.VitamClientFactory<AccessExternalClient>
fr.gouv.vitam.access.external.client.AccessExternalClientFactory
All Implemented Interfaces:
VitamClientFactoryInterface<AccessExternalClient>

public class AccessExternalClientFactory extends VitamClientFactory<AccessExternalClient>
Access External Client Factory
Used to create access client : if configuration file does not exist 'access-external-client.conf',
mock access client will be returned
  • Constructor Details

    • AccessExternalClientFactory

      protected AccessExternalClientFactory()
  • Method Details

    • getInstance

      public static final AccessExternalClientFactory getInstance()
      Get the AccessClientFactory instance
      Returns:
      the instance
    • getClient

      public AccessExternalClient getClient()
      Description copied from interface: VitamClientFactoryInterface
      This method returns the correct Client adapted to the business case
      Returns:
      the Vitam client
    • changeMode

      public static void changeMode(ClientConfiguration configuration)
      JUnit only!!
      Parameters:
      configuration - null for MOCK
    • changeMode

      public static void changeMode(String configurationFile)