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
,MallocLibComponentDescription
,MdNativeComponentDescription
,MdNativePlatformComponentDescription
,NgHttpPlatformComponentDescription
,PlatformComponentDescription
,StdLibCPlusPlusComponentDescription
,WSDefinitionComponentDescription
,WSDefinitionPlatformComponentDescription
public abstract class AbstractComponentDescription extends Object implements IComponentDescription, IComponentLibraryResolver
Abstract implementation ofIComponentDescription
andIComponentLibraryResolver
. 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 IComponentLibraryResolver
getDelegate(Version version)
Gets delegate class for resolving component libraries from fragment plugin.protected String
getVersionPathPart(Version version)
Gets string presentation of library path depending from runtime versionFile
resolveLibrary(String name, Version version)
Gets file to the library by its nameFile
resolveResource(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:IComponentLibraryResolver
Gets file to the library by its name- Specified by:
resolveLibrary
in interfaceIComponentLibraryResolver
- Parameters:
name
- name of the resolving library, can't benull
- 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 interfaceIComponentLibraryResolver
- Parameters:
name
- name of the resolving library resource, can't benull
- 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()
throwClassNotFoundException
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'benull
- Returns:
- string presentation of library path depending from runtime version, never
null
-
-