Package com.consol.citrus.endpoint
Class DefaultEndpointFactory
- java.lang.Object
-
- com.consol.citrus.endpoint.DefaultEndpointFactory
-
- All Implemented Interfaces:
EndpointFactory
public class DefaultEndpointFactory extends Object implements EndpointFactory
Default endpoint factory implementation uses registered endpoint components in Spring application context to create endpoint from given endpoint uri. If endpoint bean name is given factory directly creates from application context. If endpoint uri is given factory tries to find proper endpoint component in application context and in default endpoint component configuration. Default endpoint components are listed in property file reference where key is the component name and value is the fully qualified class name of the implementing endpoint component class.- Since:
- 1.4.1
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description DefaultEndpointFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpointcreate(String endpointName, CitrusEndpoint endpointConfig, Class<?> endpointType, TestContext context)Finds endpoint by parsing the given endpoint properties.Endpointcreate(String uri, TestContext context)Finds endpoint by parsing the given endpoint uri.Endpointcreate(String endpointName, Annotation endpointConfig, TestContext context)Finds endpoint by parsing the given endpoint annotation.
-
-
-
Method Detail
-
create
public Endpoint create(String endpointName, Annotation endpointConfig, TestContext context)
Description copied from interface:EndpointFactoryFinds 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.- Specified by:
createin interfaceEndpointFactory- Returns:
-
create
public Endpoint create(String endpointName, CitrusEndpoint endpointConfig, Class<?> endpointType, TestContext context)
Description copied from interface:EndpointFactoryFinds 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.- Specified by:
createin interfaceEndpointFactory- Returns:
-
create
public Endpoint create(String uri, TestContext context)
Description copied from interface:EndpointFactoryFinds 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.- Specified by:
createin interfaceEndpointFactory- Returns:
-
-