Class 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 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
    • Constructor Detail

      • ContextLoadingMappingStrategy

        public ContextLoadingMappingStrategy()
    • Method Detail

      • getEndpointAdapter

        public com.consol.citrus.endpoint.EndpointAdapter getEndpointAdapter​(String mappingKey)
        Specified by:
        getEndpointAdapter in interface com.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 -