org.modelmapper.builder
Interface ProviderExpression<S,D>

Type Parameters:
S - source type
D - destination type
All Superinterfaces:
ConverterExpression<S,D>, MapExpression<D>, SkipExpression<D>
All Known Subinterfaces:
ConditionExpression<S,D>
All Known Implementing Classes:
MappingBuilderImpl

public interface ProviderExpression<S,D>
extends ConverterExpression<S,D>

Expresses a Provider.

Author:
Jonathan Halterman

Method Summary
 ConverterExpression<S,D> withProvider(Provider<?> provider)
          Specifies the provider to be used for providing instances of the mapped property.
 
Methods inherited from interface org.modelmapper.builder.ConverterExpression
using
 
Methods inherited from interface org.modelmapper.builder.SkipExpression
skip
 
Methods inherited from interface org.modelmapper.builder.MapExpression
map, map
 

Method Detail

withProvider

ConverterExpression<S,D> withProvider(Provider<?> provider)
Specifies the provider to be used for providing instances of the mapped property. When used with deep mapping the provider should provide an instance of the last destination property. See the EDSL examples.

Parameters:
provider - to use for providing the destination property
Throws:
IllegalStateException - if called from outside the context of PropertyMap.configure().


Copyright © 2011. All Rights Reserved.