Package com._1c.g5.v8.dt.natives.library
Class AbstractDelegateComponentDescription
- java.lang.Object
-
- com._1c.g5.v8.dt.natives.library.AbstractDelegateComponentDescription
-
- All Implemented Interfaces:
IComponentLibraryResolver
- Direct Known Subclasses:
AbstractDelegatePlatformComponentDescription
public abstract class AbstractDelegateComponentDescription extends Object implements IComponentLibraryResolver
Abstract implementation ofIComponentLibraryResolverwith possibility resolving component libraries by name from plugin folder.
-
-
Constructor Summary
Constructors Constructor Description AbstractDelegateComponentDescription()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetLibraryExtension()Gets library file extensionprotected StringgetLibraryExtensionSuffix(Version version)protected abstract StringgetLibraryFolderName()Gets name of the folder with librariesprotected abstract StringgetPluginId()Gets plugin id with libraries folderFileresolveLibrary(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
-
-
-
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
-
getLibraryFolderName
protected abstract String getLibraryFolderName()
Gets name of the folder with libraries- Returns:
- name of the folder with libraries, never
null
-
getLibraryExtension
protected abstract String getLibraryExtension()
Gets library file extension- Returns:
- library file extension, never
null
-
getPluginId
protected abstract String getPluginId()
Gets plugin id with libraries folder- Returns:
- plugin id with libraries folder, never
null
-
-