Package org.citrusframework.endpoint
Interface EndpointComponent
public interface EndpointComponent
Endpoint component registers with bean name in Spring application context and is then responsible to create proper endpoints dynamically from
endpoint uri values. Creates endpoint instance by parsing the dynamic endpoint uri with special properties and parameters. Creates proper endpoint
configuration instance on the fly.
- Since:
- 1.4.1
- Author:
- Christoph Deppisch
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.slf4j.LoggerLoggerstatic final StringEndpoint component resource lookup pathstatic final ResourcePathTypeResolverDefault Citrus endpoint components from classpath resource properties -
Method Summary
Modifier and TypeMethodDescriptioncreateEndpoint(String endpointUri, TestContext context) Creates proper endpoint instance from endpoint uri.getName()Gets the name of this endpoint component.getParameters(String endpointUri) Construct endpoint name from endpoint uri.static Map<String,EndpointComponent> lookup()Resolves all available endpoint components from resource path lookup.static Optional<EndpointComponent>Resolves endpoint component from resource path lookup with given resource name.
-
Field Details
-
logger
static final org.slf4j.Logger loggerLogger -
ENDPOINT_NAME
- See Also:
-
RESOURCE_PATH
Endpoint component resource lookup path- See Also:
-
TYPE_RESOLVER
Default Citrus endpoint components from classpath resource properties
-
-
Method Details
-
createEndpoint
Creates proper endpoint instance from endpoint uri.- Parameters:
endpointUri-context-- Returns:
-
getName
String getName()Gets the name of this endpoint component.- Returns:
-
getParameters
Construct endpoint name from endpoint uri.- Parameters:
endpointUri-- Returns:
-
lookup
Resolves all available endpoint components from resource path lookup. Scans classpath for endpoint component meta information and instantiates those components.- Returns:
-
lookup
Resolves endpoint component from resource path lookup with given resource name. Scans classpath for endpoint component meta information with given name and returns instance of the component. Returns optional instead of throwing exception when no endpoint component could be found.- Parameters:
component-- Returns:
-