Class ImportServiceAutoConfiguration.ExampleImportConfiguration
java.lang.Object
com.broadleafcommerce.dataimport.service.autoconfigure.ImportServiceAutoConfiguration.ExampleImportConfiguration
- Enclosing class:
- ImportServiceAutoConfiguration
@Configuration
public static class ImportServiceAutoConfiguration.ExampleImportConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe legacy product import represented byProductSpecification
will continue to have its example resolved byDefaultExampleImportResolver
until the legacy behavior is fully removed in a future version.exampleImportManager
(List<ExampleImportResolver> resolvers)
-
Constructor Details
-
ExampleImportConfiguration
public ExampleImportConfiguration()
-
-
Method Details
-
defaultExampleImportResolver
-
userExampleImportResolver
-
priceDataExampleImportResolver
@Bean @ConditionalOnMissingBean public PriceDataExampleImportResolver priceDataExampleImportResolver() -
completeProductExampleImportResolver
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(name="broadleaf.import.product.specification.use-legacy", havingValue="false", matchIfMissing=true) @Order(2000) public CompleteProductExampleImportResolver completeProductExampleImportResolver()The legacy product import represented byProductSpecification
will continue to have its example resolved byDefaultExampleImportResolver
until the legacy behavior is fully removed in a future version.Until then, if the new product import behavior is activated, we register this
CompleteProductExampleImportResolver
bean with a higher precedence thanDefaultExampleImportResolver
such that the correct example file is used.- Returns:
- the consolidated product example import file resolver
-
exampleImportManager
@Bean @ConditionalOnMissingBean public ExampleImportManager exampleImportManager(@Autowired(required=false) List<ExampleImportResolver> resolvers)
-