Class DefaultValueProviderFactory
java.lang.Object
de.floydkretschmar.fixturize.stategies.constants.value.providers.DefaultValueProviderFactory
- All Implemented Interfaces:
ValueProviderFactory
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultValueProviderFactory
public DefaultValueProviderFactory()
-
-
Method Details
-
createValueProviders
Description copied from interface:ValueProviderFactoryCreates a map of value providers that consists of both default value providers registered for base types and custom value providers.- Specified by:
createValueProvidersin interfaceValueProviderFactory- Parameters:
customValueProviders- - that are registered by usingFixtureValueProvider- Returns:
- the map of value providers
-
createDeclaredTypeValueProvider
Description copied from interface:ValueProviderFactoryCreates the value provider used forElementinstances with types of typeDeclaredType.- Specified by:
createDeclaredTypeValueProviderin interfaceValueProviderFactory- Parameters:
valueProviderService- - that is used to retrieve the corresponding value representation for a givenElement.- Returns:
- the value provider
-
createContainerValueProvider
public ValueProvider createContainerValueProvider(Elements elementUtils, Types typeUtils, ValueProviderService valueProviderService) Description copied from interface:ValueProviderFactoryCreates the value provider used forElementinstances with a container type.- Specified by:
createContainerValueProviderin interfaceValueProviderFactory- 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
-