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 Details

    • ReferencedTypeValueGenerator

      public ReferencedTypeValueGenerator(BeanBuilder generator)
  • Method Details

    • generate

      public Object generate(PropertyReference reference, Class<?> propertyType)
      Generate a new value of the specified property.
      Specified by:
      generate in class PropertyValueGenerator
      Parameters:
      reference - the property reference
      propertyType - the type of property
      Returns:
      the generation property value