All Known Implementing Classes:
DefaultValueProviderFactory

public interface ValueProviderFactory
Defines the methods used to create value providers that are used to generate values for fixture constants.
  • Method Details

    • createValueProviders

      ValueProviderMap createValueProviders(Map<String,ValueProvider> customValueProviders)
      Creates a map of value providers that consists of both default value providers registered for base types and custom value providers.
      Parameters:
      customValueProviders - - that are registered by using FixtureValueProvider
      Returns:
      the map of value providers
    • createDeclaredTypeValueProvider

      ValueProvider createDeclaredTypeValueProvider(ValueProviderService valueProviderService)
      Creates the value provider used for Element instances with types of type DeclaredType.
      Parameters:
      valueProviderService - - that is used to retrieve the corresponding value representation for a given Element.
      Returns:
      the value provider
    • createContainerValueProvider

      ValueProvider createContainerValueProvider(Elements elementUtils, Types typeUtils, ValueProviderService valueProviderService)
      Creates the value provider used for Element instances with a container type.
      Parameters:
      elementUtils - - defining utility methods to work with Element
      typeUtils - - defining utility methods to work with TypeMirror
      valueProviderService - - that is used to retrieve the corresponding value representation for a given Element.
      Returns:
      the value provider