Interface EndpointFactory

All Known Implementing Classes:
DefaultEndpointFactory

public interface EndpointFactory
Endpoint factory tries to get endpoint instance by parsing an endpoint uri. Uri can have parameters that get passed to the endpoint configuration. If Spring application context is given searches for matching endpoint component bean and delegates to component for endpoint creation.
Since:
1.4.1
Author:
Christoph Deppisch
  • Method Details

    • create

      Endpoint create(String endpointUri, TestContext context)
      Finds endpoint by parsing the given endpoint uri. The test context helps to create endpoints by providing the reference resolver so registered beans and bean references can be set as configuration properties.
      Parameters:
      endpointUri -
      context -
      Returns:
    • create

      Endpoint create(String endpointName, Annotation endpointConfig, TestContext context)
      Finds endpoint by parsing the given endpoint annotation. The test context helps to create endpoints by providing the reference resolver so registered beans and bean references can be set as configuration properties.
      Parameters:
      endpointName -
      endpointConfig -
      context -
      Returns:
    • create

      Endpoint create(String endpointName, CitrusEndpoint endpointConfig, Class<?> endpointType, TestContext context)
      Finds endpoint by parsing the given endpoint properties. The test context helps to create endpoints by providing the reference resolver so registered beans and bean references can be set as configuration properties.
      Parameters:
      endpointName -
      endpointConfig -
      endpointType -
      context -
      Returns: