com.github.nagyesta.lowkeyvault.mapper.common.RecoveryAwareConverter Maven / Gradle / Ivy
package com.github.nagyesta.lowkeyvault.mapper.common;
import com.github.nagyesta.lowkeyvault.context.ApiVersionAware;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;
import java.net.URI;
/**
* Converter interface supporting both active and deleted entities.
*
* @param The source type.
* @param The active target type.
* @param The deleted target type.
*/
public interface RecoveryAwareConverter extends ApiVersionAware, InitializingBean {
@Nullable
T convert(S source, @NonNull URI vaultUri);
@NonNull
DT convertDeleted(@NonNull S source, @NonNull URI vaultUri);
}