Package com._1c.g5.v8.dt.natives.library
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 ofIComponentDescriptionandIComponentLibraryResolver. This implemetation has special infrastructure of resolving libraries names from fragment plugin libraries folders. Fragments should contain libraries for different type of OS
-
-
Constructor Summary
Constructors Constructor Description AbstractComponentDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IComponentLibraryResolvergetDelegate(Version version)Gets delegate class for resolving component libraries from fragment plugin.protected StringgetVersionPathPart(Version version)Gets string presentation of library path depending from runtime versionFileresolveLibrary(String name, Version version)Gets file to the library by its nameFileresolveResource(String name, Version version)Gets file to the library resource by its name-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.natives.library.IComponentDescription
checkLibraryResources, getComponentName, getLibraries
-
-
-
-
Method Detail
-
resolveLibrary
public File resolveLibrary(String name, Version version)
Description copied from interface:IComponentLibraryResolverGets file to the library by its name- Specified by:
resolveLibraryin interfaceIComponentLibraryResolver- Parameters:
name- name of the resolving library, can't benull- Returns:
- file corresponding to the resolving library or
nullif library with the same name wasn't found
-
resolveResource
public File resolveResource(String name, Version version)
Description copied from interface:IComponentLibraryResolverGets file to the library resource by its name- Specified by:
resolveResourcein interfaceIComponentLibraryResolver- Parameters:
name- name of the resolving library resource, can't benull- Returns:
- file corresponding to the resolving library resource or
nullif 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()throwClassNotFoundExceptionor 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'benull- Returns:
- string presentation of library path depending from runtime version, never
null
-
-