Class BslResourceExtension

java.lang.Object
com.e1c.langtool.v8.dt.bsl.i18n.internal.loader.BslResourceExtension
All Implemented Interfaces:
IBslResourceExtension

@LifecycleService(name="BslResourceExtension") public class BslResourceExtension extends Object implements IBslResourceExtension
This extension intercept BSL file content reading and forward file preprocessing to dedicated service, implementing IBslLoadingPreprocessor interface.
  • Constructor Details

  • Method Details

    • link

      @LifecycleParticipant(phase=LINKING) public void link()
    • replaceStreamIfNecessary

      public InputStream replaceStreamIfNecessary(org.eclipse.core.resources.IFile bslFile, InputStream originalStream)
      Description copied from interface: IBslResourceExtension
      Replaces the input stream if necessary. This variant is used for non-resource file reading operations, like platform XML export
      Specified by:
      replaceStreamIfNecessary in interface IBslResourceExtension
      Parameters:
      bslFile - The source file. May not be null
      originalStream - The original input stream. May not be null
      Returns:
      The replaced stream if necessary. Otherwise should return the original stream. Never null
    • replaceStreamIfNecessary

      public InputStream replaceStreamIfNecessary(org.eclipse.emf.ecore.resource.Resource bslResource, InputStream originalStream, Map<?,?> options)
      Description copied from interface: IBslResourceExtension
      Replaces the resource input stream if necessary
      Specified by:
      replaceStreamIfNecessary in interface IBslResourceExtension
      Parameters:
      bslResource - The target resource. May not be null
      originalStream - The original input stream. May not be null
      options - The loadding options. May be null
      Returns:
      The replaced stream if necessary. Otherwise should return the original stream. Never null