Package com._1c.g5.v8.dt.natives.library
Class AbstractScomConnectionLoader
- java.lang.Object
-
- com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
-
- Direct Known Subclasses:
ChartImageProvider
,DcsNativeSupportLoader
,FormNativeTransformatorLoader
,MdNativeMobileClientSignLoader
,WSDefinitionLoader
public abstract class AbstractScomConnectionLoader extends Object
Supporting of initializing and loading SCOM components of V8 platform
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
LD_LIBRARY_PATH
Key for linux system for force loading libraries from concrete path of file systemprotected Version
version
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractScomConnectionLoader(IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager, Version version)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]
getLibraries(String componentName)
Gets system libraries for loading SCOM components by its namecomponentName
protected String
getMessageException(Exception e)
Gets string representation ofException
protected org.eclipse.xtext.util.Pair<String,String>
getProcessEnvironments(String[] libraries)
Creates enviromental variable for linux OS for force loading libraries from concrete path of file systemprotected Path
getRuntimeInstallation()
Gets actual runtime installation of V8 platform in OSprotected Collection<File>
getSystemLibraries(Collection<File> libraries)
Gets files of system libraries for loading SCOM components.
-
-
-
Field Detail
-
LD_LIBRARY_PATH
protected static final String LD_LIBRARY_PATH
Key for linux system for force loading libraries from concrete path of file system- See Also:
- Constant Field Values
-
version
protected final Version version
-
-
Constructor Detail
-
AbstractScomConnectionLoader
protected AbstractScomConnectionLoader(IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager, Version version)
Constructor- Parameters:
resolvableRuntimeInstallationManager
-IResolvableRuntimeInstallation
for getting installed V8 platform components, can't benull
version
- actualVersion
, can't benull
-
-
Method Detail
-
getProcessEnvironments
protected org.eclipse.xtext.util.Pair<String,String> getProcessEnvironments(String[] libraries)
Creates enviromental variable for linux OS for force loading libraries from concrete path of file system- Parameters:
libraries
- pathes to the libraries, can't benull
- Returns:
- eviromental variable key and its value, can be
null
if there is no libraries
-
getSystemLibraries
protected Collection<File> getSystemLibraries(Collection<File> libraries)
Gets files of system libraries for loading SCOM components. If in OS install V8 platform alllibraries
will be replaced to the libraries from this installation, if libraries exist- Parameters:
libraries
- initial system libraries for loading SCOM components- Returns:
- files of system libraries for loading SCOM components. If in OS install V8 platform all
libraries
will be replaced to the libraries from this installation, if libraries exist, nevernull
-
getLibraries
protected String[] getLibraries(String componentName)
Gets system libraries for loading SCOM components by its namecomponentName
- Parameters:
componentName
- name of the component for loading SCOM, can't benull
- Returns:
- name of the system libraries for loading SCOM components by its name
componentName
, nevernull
-
getRuntimeInstallation
protected Path getRuntimeInstallation()
Gets actual runtime installation of V8 platform in OS- Returns:
- path to the runtime installation, can be
null
if there is no V8 platform in OS
-
-