Interface ILibraryRepository

  • All Superinterfaces:
    IManagedService

    public interface ILibraryRepository
    extends IManagedService
    A library repository handling registration, deleting libraries. Also allows to check whether the library is registered in the repository and get a list of all registered libraries.
    • Method Detail

      • isLibraryRegistered

        boolean isLibraryRegistered​(LibraryDescriptor libraryDescriptor)
        Checks whether the given library is registered in the repository.
        Parameters:
        libraryDescriptor - the library descriptor to check, cannot be null
        Returns:
        true if the library is registered in the repository, false otherwise
      • getAllRegisteredLibraries

        Collection<LibraryDescriptor> getAllRegisteredLibraries()
        Returns the collection of all registered libraries.
        Returns:
        the unmodifiable collection of all registered libraries, never null
      • getAllRegisteredLibraries

        Collection<LibraryDescriptor> getAllRegisteredLibraries​(LibraryDependency libraryDependency)
        Returns the collection of all registered libraries according to the specified dependency on the library.
        Parameters:
        libraryDependency - the dependency on the library, cannot be null
        Returns:
        the unmodifiable collection of all registered libraries, never null
      • refresh

        void refresh​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Refreshes the current collection of registered libraries.
        Parameters:
        monitor - the monitor to indicate the progress, may be null