com.github.nagyesta.lowkeyvault.mapper.common.AliasAwareConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lowkey-vault-app Show documentation
Show all versions of lowkey-vault-app Show documentation
Assembled application of Lowkey Vault.
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;
/**
* A converter that converts a source object of type {@code S} to a target of type {@code T}
* while replacing vault base URI references in Ids.
*
* @param the source type
* @param the target type
*/
public interface AliasAwareConverter extends ApiVersionAware, InitializingBean {
@Nullable
T convert(S source, @NonNull URI vaultUri);
}