Package com._1c.g5.v8.dt.project.library
Interface IV8LibraryManager
- All Known Implementing Classes:
V8LibraryManager
public interface IV8LibraryManager
Library manager operating on a set of connectors providing access to library sources.
-
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.
-
Method Details
-
addConnector
Adds library connector with specified source.- Parameters:
source
- library connector source, can't benull
name
- connector name, can't benull
-
getLibrary
Returns a library by its descriptor.- Parameters:
libraryDescriptor
- library descriptor, can't benull
- Returns:
- library
-
getLibraryDescriptors
Map<URI,Collection<IV8LibraryDescriptor>> getLibraryDescriptors()Gets cached library descriptors from all connectors. Awaits if caching requests are already performed.- Returns:
- library descriptors associated with connectors
-
getConnectors
Gets connectors.- Returns:
- connectors (
source
-name
)
-
registerLibrary
Registers library in the specified connector.- Parameters:
library
- library to register, can't benull
destination
- connector identifier source, can't benull
-
removeConnector
Removes connector from library repository manager.- Parameters:
source
- connector identifier source
-
requestLibraryDescriptors
Map<URI,Collection<IV8LibraryDescriptor>> requestLibraryDescriptors()Requests library descriptors from all connectors.- Returns:
- actual library descriptors associated with connectors
-
update
void update()Updates cached library descriptors.
-