Interface MapperDecorator<A,B>

Type Parameters:
A - the source type
B - the target type

public interface MapperDecorator<A,B>
Decorates mapper operations with cross-cutting behavior.
  • Method Details

    • decorateTo

      default B decorateTo(A value, MappingContext ctx, MapperDecorator.MapperOperation<A,B> operation)
      Decorates a forward mapping operation.
      Parameters:
      value - the source value
      ctx - the mapping context
      operation - the underlying operation
      Returns:
      the mapped result
    • decorateFrom

      default A decorateFrom(B value, MappingContext ctx, MapperDecorator.MapperOperation<B,A> operation)
      Decorates a reverse mapping operation.
      Parameters:
      value - the source value
      ctx - the mapping context
      operation - the underlying operation
      Returns:
      the mapped result