INFO - type of element that describes a module after preparation and allow its proper intializationpublic interface LibraryHandler<INFO> extends LibraryFetcher
AbstractCockpitModuleConnector to get the cockpit module libraries.| Modifier and Type | Method and Description |
|---|---|
void |
afterDeploy(CockpitModuleInfo moduleInfo,
String libDir)
Deprecated.
since 1808, use
LibraryFetcher.fetchLibrary(ModuleInfo, File) instead |
void |
afterDeployReverseOrder(CockpitModuleInfo moduleInfo,
String libDir)
Deprecated.
since 1808, use
LibraryFetcher.fetchLibrary(ModuleInfo, File) instead |
default boolean |
canFetchLibrary(ModuleInfo moduleInfo)
Deprecated.
since 1808, use
LibraryFetcher.canFetchLibrary(ModuleInfo) instead |
void |
fetchLibrary(CockpitModuleInfo moduleInfo,
File archiveFile)
Deprecated.
since 1808, use
LibraryFetcher.fetchLibrary(ModuleInfo, File) instead |
default void |
initialize(ModuleInfo moduleInfo,
INFO info)
Initializes a module with provided info object.
|
default INFO |
prepare(ModuleInfo moduleInfo)
Prepares an info object for specified module.
|
fetchLibrary@Deprecated default boolean canFetchLibrary(ModuleInfo moduleInfo)
LibraryFetcher.canFetchLibrary(ModuleInfo) insteadLibraryFetcher
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.
canFetchLibrary in interface LibraryFetchermoduleInfo - module to be fetchedtrue if module is not yet fetched and requires fetching@Deprecated void fetchLibrary(CockpitModuleInfo moduleInfo, File archiveFile) throws CockpitModuleDeploymentException
LibraryFetcher.fetchLibrary(ModuleInfo, File) insteadCockpitModuleDeploymentException@Deprecated void afterDeploy(CockpitModuleInfo moduleInfo, String libDir)
LibraryFetcher.fetchLibrary(ModuleInfo, File) instead@Deprecated void afterDeployReverseOrder(CockpitModuleInfo moduleInfo, String libDir)
LibraryFetcher.fetchLibrary(ModuleInfo, File) insteadafterDeploy(CockpitModuleInfo, String) of all
modules, in reverse module order, i.e. last module first.default INFO prepare(ModuleInfo moduleInfo)
Method is called for each module loaded in order of modules loading.
moduleInfo - information about loaded moduleinitialize(ModuleInfo, Object)default void initialize(ModuleInfo moduleInfo, INFO info)
Method is called for each module loaded in reversed order of modules loading.
moduleInfo - information about loaded moduleinfo - info object prepared in prepare(ModuleInfo) methodCopyright © 2018. All rights reserved.