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 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 versionresolveLibrary
(String name, Version version) Gets file to the library by its nameresolveResource
(String name, Version version) Gets file to the library resource by its nameMethods 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
-
Constructor Details
-
AbstractComponentDescription
public AbstractComponentDescription()
-
-
Method Details
-
resolveLibrary
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
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
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
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
-