Class ContextLoadingMappingStrategy
java.lang.Object
org.citrusframework.endpoint.adapter.mapping.ContextLoadingMappingStrategy
- All Implemented Interfaces:
EndpointAdapterMappingStrategy
Endpoint adapter mapping strategy loads new Spring Application contexts defined by one or more locations
and tries to find matching Spring bean with given name or id.
- Since:
- 1.4
- Author:
- Christoph Deppisch
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringApplication context configuration location holding available endpoint adaptersprotected booleanShould application context be loaded once or with every mapping call -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEndpointAdapter(String mappingKey) voidsetContextConfigLocation(String contextConfigLocation) Sets the context config location for building the Spring application context.
-
Field Details
-
contextConfigLocation
Application context configuration location holding available endpoint adapters -
loadOnce
protected boolean loadOnceShould application context be loaded once or with every mapping call
-
-
Constructor Details
-
ContextLoadingMappingStrategy
public ContextLoadingMappingStrategy()
-
-
Method Details
-
getEndpointAdapter
- Specified by:
getEndpointAdapterin interfaceEndpointAdapterMappingStrategy
-
setContextConfigLocation
Sets the context config location for building the Spring application context.- Parameters:
contextConfigLocation-
-