Class DefaultExtensionSubsitutionService
java.lang.Object
de.hybris.platform.travelservices.substitute.impl.DefaultExtensionSubsitutionService
- All Implemented Interfaces:
ExtensionSubstitutionService
public class DefaultExtensionSubsitutionService
extends Object
implements ExtensionSubstitutionService
Service needed for addons to search files in correct extensions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSubstitutedExtension(String extension) Takes in an extension name, and if this is registered with the service, returns the alternate extension instead.voidsetExtensionSubstitutionMap(Map<String, String> extensionSubstitutionMap)
-
Constructor Details
-
DefaultExtensionSubsitutionService
public DefaultExtensionSubsitutionService()
-
-
Method Details
-
getSubstitutedExtension
Description copied from interface:ExtensionSubstitutionServiceTakes in an extension name, and if this is registered with the service, returns the alternate extension instead. If the name is not registered with the service, it merely returns the same extension name it has been called with.- Specified by:
getSubstitutedExtensionin interfaceExtensionSubstitutionService- Parameters:
extension- the extension name to check for substitution- Returns:
- either the same name or a substituted naem
-
getExtensionSubstitutionMap
- Returns:
- the extensionSubstitutionMap
-
setExtensionSubstitutionMap
- Parameters:
extensionSubstitutionMap- the extensionSubstitutionMap to set
-