Interface LibraryFetcher

  • All Known Subinterfaces:
    LibraryHandler<INFO>
    All Known Implementing Classes:
    CockpitRemoteLibraryHandler

    public interface LibraryFetcher
    An interface of object capable of fetching modules source code into specified archived library file.
    • Method Detail

      • canFetchLibrary

        boolean canFetchLibrary​(ModuleInfo moduleInfo)
        Checks if specified module can be fetched by this fetcher.

        There are some modules that are i.e. injected directly into classpath and does not need any additional fetching. Such modules should still be handled by system, yet not fetched (as they are in fact already fetched). For such situations fetcher should return false.

        Parameters:
        moduleInfo - module to be fetched
        Returns:
        true if module is not yet fetched and requires fetching