Class ContextLoadingMappingStrategy
- java.lang.Object
-
- com.consol.citrus.endpoint.adapter.mapping.ContextLoadingMappingStrategy
-
- All Implemented Interfaces:
com.consol.citrus.endpoint.adapter.mapping.EndpointAdapterMappingStrategy
public class ContextLoadingMappingStrategy extends Object implements com.consol.citrus.endpoint.adapter.mapping.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
Fields Modifier and Type Field Description protected String
contextConfigLocation
Application context configuration location holding available endpoint adaptersprotected boolean
loadOnce
Should application context be loaded once or with every mapping call
-
Constructor Summary
Constructors Constructor Description ContextLoadingMappingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.consol.citrus.endpoint.EndpointAdapter
getEndpointAdapter(String mappingKey)
void
setContextConfigLocation(String contextConfigLocation)
Sets the context config location for building the Spring application context.
-
-
-
Field Detail
-
contextConfigLocation
protected String contextConfigLocation
Application context configuration location holding available endpoint adapters
-
loadOnce
protected boolean loadOnce
Should application context be loaded once or with every mapping call
-
-
Method Detail
-
getEndpointAdapter
public com.consol.citrus.endpoint.EndpointAdapter getEndpointAdapter(String mappingKey)
- Specified by:
getEndpointAdapter
in interfacecom.consol.citrus.endpoint.adapter.mapping.EndpointAdapterMappingStrategy
-
setContextConfigLocation
public void setContextConfigLocation(String contextConfigLocation)
Sets the context config location for building the Spring application context.- Parameters:
contextConfigLocation
-
-
-