Interface ValueProviderFactory
- 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 Summary
Modifier and TypeMethodDescriptioncreateContainerValueProvider(Elements elementUtils, Types typeUtils, ValueProviderService valueProviderService) Creates the value provider used forElementinstances with a container type.createDeclaredTypeValueProvider(ValueProviderService valueProviderService) Creates the value provider used forElementinstances with types of typeDeclaredType.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.
-
Method Details
-
createValueProviders
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 usingFixtureValueProvider- Returns:
- the map of value providers
-
createDeclaredTypeValueProvider
Creates the value provider used forElementinstances with types of typeDeclaredType.- Parameters:
valueProviderService- - that is used to retrieve the corresponding value representation for a givenElement.- Returns:
- the value provider
-
createContainerValueProvider
ValueProvider createContainerValueProvider(Elements elementUtils, Types typeUtils, ValueProviderService valueProviderService) Creates the value provider used forElementinstances with a container type.- Parameters:
elementUtils- - defining utility methods to work withElementtypeUtils- - defining utility methods to work withTypeMirrorvalueProviderService- - that is used to retrieve the corresponding value representation for a givenElement.- Returns:
- the value provider
-