Package org.citrusframework.spi
Class CitrusResourceWrapper.ResourceConverter
java.lang.Object
org.citrusframework.spi.CitrusResourceWrapper.ResourceConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.ConditionalConverter,org.springframework.core.convert.converter.Converter<org.springframework.core.io.Resource,org.citrusframework.spi.Resource>
- Enclosing class:
- CitrusResourceWrapper
public static class CitrusResourceWrapper.ResourceConverter
extends Object
implements org.springframework.core.convert.converter.Converter<org.springframework.core.io.Resource,org.citrusframework.spi.Resource>, org.springframework.core.convert.converter.ConditionalConverter
Spring bean converter implementation able to convert from Spring resource to Citrus resource implementation.
-
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:
matchesin interfaceorg.springframework.core.convert.converter.ConditionalConverter
-
convert
public org.citrusframework.spi.Resource convert(org.springframework.core.io.Resource source) - Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<org.springframework.core.io.Resource,org.citrusframework.spi.Resource>
-