Package nl._42.beanie.generator
Class ReferencedTypeValueGenerator
- java.lang.Object
-
- nl._42.beanie.generator.PropertyValueGenerator
-
- nl._42.beanie.generator.ReferencedTypeValueGenerator
-
- All Implemented Interfaces:
ValueGenerator
public class ReferencedTypeValueGenerator extends PropertyValueGenerator
Dynamically generates a value of the referenced type.- Since:
- Jun 8, 2016
- Author:
- Jeroen van Schagen
-
-
Constructor Summary
Constructors Constructor Description ReferencedTypeValueGenerator(BeanBuilder generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
generate(PropertyReference reference, Class<?> propertyType)
Generate a new value of the specified property.-
Methods inherited from class nl._42.beanie.generator.PropertyValueGenerator
generate
-
-
-
-
Constructor Detail
-
ReferencedTypeValueGenerator
public ReferencedTypeValueGenerator(BeanBuilder generator)
-
-
Method Detail
-
generate
public Object generate(PropertyReference reference, Class<?> propertyType)
Generate a new value of the specified property.- Specified by:
generate
in classPropertyValueGenerator
- Parameters:
reference
- the property referencepropertyType
- the type of property- Returns:
- the generation property value
-
-