Interface ExtensionSubstitutionService
- All Known Implementing Classes:
DefaultExtensionSubsitutionService
public interface ExtensionSubstitutionService
When dealing with the add-on framework, there are times when an extension name is required (usually when building
paths to resources). However, this is often assumed to be the extension where an item type is defined, not where the
resources to handle it are located. So in these circumstances, we use the substituion service to return the correct
extension name.
-
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.
-
Method Details
-
getSubstitutedExtension
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.- Parameters:
extension- the extension name to check for substitution- Returns:
- either the same name or a substituted naem
-