Package org.citrusframework.endpoint
Class DefaultEndpointFactory
java.lang.Object
org.citrusframework.endpoint.DefaultEndpointFactory
- All Implemented Interfaces:
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(String endpointName, Annotation endpointConfig, TestContext context) create(String endpointName, CitrusEndpoint endpointConfig, Class<?> endpointType, TestContext context) create(String uri, TestContext context)
-
Constructor Details
-
DefaultEndpointFactory
public DefaultEndpointFactory()
-
-
Method Details
-
create
- Specified by:
createin interfaceEndpointFactory
-
create
public Endpoint create(String endpointName, CitrusEndpoint endpointConfig, Class<?> endpointType, TestContext context) - Specified by:
createin interfaceEndpointFactory
-
create
- Specified by:
createin interfaceEndpointFactory
-