Class SpringResourceWrapper.ResourceConverter

java.lang.Object
org.citrusframework.spi.SpringResourceWrapper.ResourceConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.ConditionalConverter, org.springframework.core.convert.converter.Converter<org.citrusframework.spi.Resource,org.springframework.core.io.Resource>
Enclosing class:
SpringResourceWrapper

public static class SpringResourceWrapper.ResourceConverter extends Object implements org.springframework.core.convert.converter.Converter<org.citrusframework.spi.Resource,org.springframework.core.io.Resource>, org.springframework.core.convert.converter.ConditionalConverter
Spring bean converter able to convert from Citrus resource to Spring resource implementation.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.core.io.Resource
    convert(org.citrusframework.spi.Resource source)
     
    boolean
    matches(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.convert.converter.Converter

    andThen
  • Constructor Details

    • ResourceConverter

      public ResourceConverter()
  • Method Details

    • matches

      public boolean matches(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
      Specified by:
      matches in interface org.springframework.core.convert.converter.ConditionalConverter
    • convert

      public org.springframework.core.io.Resource convert(org.citrusframework.spi.Resource source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<org.citrusframework.spi.Resource,org.springframework.core.io.Resource>