Class DefaultExampleImportResolver
java.lang.Object
com.broadleafcommerce.dataimport.service.AbstractExampleImportResolver
com.broadleafcommerce.dataimport.service.DefaultExampleImportResolver
- All Implemented Interfaces:
ExampleImportResolver
@Order(2147483627)
public class DefaultExampleImportResolver
extends AbstractExampleImportResolver
implements ExampleImportResolver
Looks up resources from classpath:default-examples/$type.$specification. This is designed
specifically for use by the framework and is ordered to appear very last.
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.broadleafcommerce.dataimport.service.AbstractExampleImportResolver
AbstractExampleImportResolver.NonExistingResource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.io.Resource
resolveExample
(String type, String fileType) Resolve an import file used as an example for the end user to downloadMethods inherited from class com.broadleafcommerce.dataimport.service.AbstractExampleImportResolver
getNonExistentResource
-
Constructor Details
-
DefaultExampleImportResolver
public DefaultExampleImportResolver()
-
-
Method Details
-
resolveExample
Description copied from interface:ExampleImportResolver
Resolve an import file used as an example for the end user to download- Specified by:
resolveExample
in interfaceExampleImportResolver
- Parameters:
type
- usually fromDefaultImportType
like PRODUCT is being requestedfileType
- file type that the import is requested for- Returns:
- a resource to the example file
-