Class V8LibraryManager
java.lang.Object
com._1c.g5.v8.dt.internal.project.library.V8LibraryManager
- All Implemented Interfaces:
IV8LibraryManager
IV8LibraryManager
implementation.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConnector
(URI source, String name) Adds library connector with specified source.Gets connectors.getLibrary
(IV8LibraryDescriptor libraryDescriptor) Returns a library by its descriptor.Gets cached library descriptors from all connectors.void
registerLibrary
(IV8Library library, URI destination) Registers library in the specified connector.void
removeConnector
(URI source) Removes connector from library repository manager.Requests library descriptors from all connectors.void
update()
Updates cached library descriptors.
-
Field Details
-
URI_FILE_SCHEME
URI file scheme identifier.- See Also:
-
-
Constructor Details
-
V8LibraryManager
public V8LibraryManager()Creates library repository manager.
-
-
Method Details
-
addConnector
Description copied from interface:IV8LibraryManager
Adds library connector with specified source.- Specified by:
addConnector
in interfaceIV8LibraryManager
- Parameters:
source
- library connector source, can't benull
name
- connector name, can't benull
-
getLibrary
Description copied from interface:IV8LibraryManager
Returns a library by its descriptor.- Specified by:
getLibrary
in interfaceIV8LibraryManager
- Parameters:
libraryDescriptor
- library descriptor, can't benull
- Returns:
- library
-
getLibraryDescriptors
Description copied from interface:IV8LibraryManager
Gets cached library descriptors from all connectors. Awaits if caching requests are already performed.- Specified by:
getLibraryDescriptors
in interfaceIV8LibraryManager
- Returns:
- library descriptors associated with connectors
-
getConnectors
Description copied from interface:IV8LibraryManager
Gets connectors.- Specified by:
getConnectors
in interfaceIV8LibraryManager
- Returns:
- connectors (
source
-name
)
-
registerLibrary
Description copied from interface:IV8LibraryManager
Registers library in the specified connector.- Specified by:
registerLibrary
in interfaceIV8LibraryManager
- Parameters:
library
- library to register, can't benull
destination
- connector identifier source, can't benull
-
removeConnector
Description copied from interface:IV8LibraryManager
Removes connector from library repository manager.- Specified by:
removeConnector
in interfaceIV8LibraryManager
- Parameters:
source
- connector identifier source
-
requestLibraryDescriptors
Description copied from interface:IV8LibraryManager
Requests library descriptors from all connectors.- Specified by:
requestLibraryDescriptors
in interfaceIV8LibraryManager
- Returns:
- actual library descriptors associated with connectors
-
update
public void update()Description copied from interface:IV8LibraryManager
Updates cached library descriptors.- Specified by:
update
in interfaceIV8LibraryManager
-