Interface LibraryFetcher
-
- All Known Subinterfaces:
LibraryHandler<INFO>
- All Known Implementing Classes:
CockpitRemoteLibraryHandler
public interface LibraryFetcherAn interface of object capable of fetching modules source code into specified archived library file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanFetchLibrary(ModuleInfo moduleInfo)Checks if specified module can be fetched by this fetcher.voidfetchLibrary(ModuleInfo moduleInfo, java.io.File archiveFile)Fetches provided module into specified archive.
-
-
-
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:
trueif module is not yet fetched and requires fetching
-
fetchLibrary
void fetchLibrary(ModuleInfo moduleInfo, java.io.File archiveFile) throws CockpitApplicationException
Fetches provided module into specified archive.- Parameters:
moduleInfo- module informationarchiveFile- destination file- Throws:
CockpitApplicationException
-
-