Class AbstractComponentDescription

java.lang.Object
com._1c.g5.v8.dt.natives.library.AbstractComponentDescription
All Implemented Interfaces:
IComponentDescription, IComponentLibraryResolver
Direct Known Subclasses:
CairoComponentDescription, ChartComponentDescription, ChartPlatformComponentDescription, DcsNativeComponentDescription, DcsNativePlatformComponentDescription, FormNativeComponentDescription, FormNativePlatformComponentDescription, IcuComponentDescription, ImageMagicComponentDescription, LibUnwindComponentDescription, LzPlatformComponentDescription, MallocLibComponentDescription, MdNativeComponentDescription, MdNativePlatformComponentDescription, NgHttpPlatformComponentDescription, OpenJpPlatformComponentDescription, PictureNativeComponentDescription, PlatformComponentDescription, StdLibCPlusPlusComponentDescription, WSDefinitionComponentDescription, WSDefinitionPlatformComponentDescription

public abstract class AbstractComponentDescription extends Object implements IComponentDescription, IComponentLibraryResolver
Abstract implementation of IComponentDescription and IComponentLibraryResolver. This implemetation has special infrastructure of resolving libraries names from fragment plugin libraries folders. Fragments should contain libraries for different type of OS
  • Constructor Details

    • AbstractComponentDescription

      public AbstractComponentDescription()
  • Method Details

    • resolveLibrary

      public File resolveLibrary(String name, Version version)
      Description copied from interface: IComponentLibraryResolver
      Gets file to the library by its name
      Specified by:
      resolveLibrary in interface IComponentLibraryResolver
      Parameters:
      name - name of the resolving library, can't be null
      Returns:
      file corresponding to the resolving library or null if library with the same name wasn't found
    • resolveResource

      public File resolveResource(String name, Version version)
      Description copied from interface: IComponentLibraryResolver
      Gets file to the library resource by its name
      Specified by:
      resolveResource in interface IComponentLibraryResolver
      Parameters:
      name - name of the resolving library resource, can't be null
      Returns:
      file corresponding to the resolving library resource or null if library resource with the same name wasn't found
    • getDelegate

      protected IComponentLibraryResolver getDelegate(Version version)
      Gets delegate class for resolving component libraries from fragment plugin. This method create instance of class getting from #getDelegateClass().
      Returns:
      delegate class for resolving component libraries from fragment plugin, never null
      Throws:
      IllegalStateException - if #getDelegateClass() throw ClassNotFoundException or if error occured while creating instance of delegating class
    • getVersionPathPart

      protected String getVersionPathPart(Version version)
      Gets string presentation of library path depending from runtime version
      Parameters:
      version - actual runtime version of libraries, can'be null
      Returns:
      string presentation of library path depending from runtime version, never null