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 Details

    • DefaultExtensionSubsitutionService

      public DefaultExtensionSubsitutionService()
  • Method Details

    • getSubstitutedExtension

      public String getSubstitutedExtension(String extension)
      Description copied from interface: ExtensionSubstitutionService
      Takes 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:
      getSubstitutedExtension in interface ExtensionSubstitutionService
      Parameters:
      extension - the extension name to check for substitution
      Returns:
      either the same name or a substituted naem
    • getExtensionSubstitutionMap

      protected Map<String,String> getExtensionSubstitutionMap()
      Returns:
      the extensionSubstitutionMap
    • setExtensionSubstitutionMap

      public void setExtensionSubstitutionMap(Map<String,String> extensionSubstitutionMap)
      Parameters:
      extensionSubstitutionMap - the extensionSubstitutionMap to set