io.rtr.alchemy.service.config.IdentityMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alchemy-service Show documentation
Show all versions of alchemy-service Show documentation
REST service for hosting Alchemy as a service
The newest version!
package io.rtr.alchemy.service.config;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.rtr.alchemy.dto.identities.IdentityDto;
import io.rtr.alchemy.mapping.Mapper;
/** Represents a one-directional mapping of one type to another */
public class IdentityMapping {
private final Class extends IdentityDto> dto;
private final Class extends Mapper> mapper;
@JsonCreator
public IdentityMapping(
@JsonProperty("dto") Class extends IdentityDto> dto,
@JsonProperty("mapper") Class extends Mapper> mapper) {
this.dto = dto;
this.mapper = mapper;
}
public Class extends IdentityDto> getDtoType() {
return dto;
}
public Class extends Mapper> getMapperType() {
return mapper;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy