public class CockpitRemoteLibraryHandler extends Object implements LibraryHandler<Object>, LibraryFetcher
| Constructor and Description |
|---|
CockpitRemoteLibraryHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterDeploy(CockpitModuleInfo moduleInfo,
String libdir)
Called after all cockpit modules have been deployed, in module order, i.e.
|
void |
afterDeployReverseOrder(CockpitModuleInfo moduleInfo,
String libDir)
Called after all cockpit modules have been deployed and after
LibraryHandler.afterDeploy(CockpitModuleInfo, String) of all
modules, in reverse module order, i.e. |
boolean |
canFetchLibrary(ModuleInfo moduleInfo)
Checks if specified module can be fetched by this fetcher.
|
void |
fetchLibrary(CockpitModuleInfo moduleInfo,
File archiveFile) |
void |
fetchLibrary(ModuleInfo moduleInfo,
File file)
Fetches provided module into specified archive.
|
void |
initialize(ModuleInfo moduleInfo,
Object o)
Initializes a module with provided info object.
|
Object |
prepare(ModuleInfo moduleInfo)
Prepares an info object for specified module.
|
public boolean canFetchLibrary(ModuleInfo moduleInfo)
LibraryFetcher
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 LibraryFetchercanFetchLibrary in interface LibraryHandler<Object>moduleInfo - module to be fetchedtrue if module is not yet fetched and requires fetchingpublic void fetchLibrary(ModuleInfo moduleInfo, File file) throws CockpitModuleDeploymentException
LibraryFetcherfetchLibrary in interface LibraryFetchermoduleInfo - module informationfile - destination fileCockpitModuleDeploymentExceptionpublic void fetchLibrary(CockpitModuleInfo moduleInfo, File archiveFile) throws CockpitModuleDeploymentException
fetchLibrary in interface LibraryHandler<Object>CockpitModuleDeploymentExceptionpublic void afterDeploy(CockpitModuleInfo moduleInfo, String libdir)
LibraryHandlerafterDeploy in interface LibraryHandler<Object>public void afterDeployReverseOrder(CockpitModuleInfo moduleInfo, String libDir)
LibraryHandlerLibraryHandler.afterDeploy(CockpitModuleInfo, String) of all
modules, in reverse module order, i.e. last module first.afterDeployReverseOrder in interface LibraryHandler<Object>public Object prepare(ModuleInfo moduleInfo)
LibraryHandlerMethod is called for each module loaded in order of modules loading.
prepare in interface LibraryHandler<Object>moduleInfo - information about loaded moduleLibraryHandler.initialize(ModuleInfo, Object)public void initialize(ModuleInfo moduleInfo, Object o)
LibraryHandlerMethod is called for each module loaded in reversed order of modules loading.
initialize in interface LibraryHandler<Object>moduleInfo - information about loaded moduleo - info object prepared in LibraryHandler.prepare(ModuleInfo) methodCopyright © 2018. All rights reserved.