Package com.hybris.cockpitng.modules
Interface LibraryHandler<INFO>
-
- Type Parameters:
INFO- type of element that describes a module after preparation and allow its proper intialization
- All Superinterfaces:
LibraryFetcher
- All Known Implementing Classes:
CockpitRemoteLibraryHandler
public interface LibraryHandler<INFO> extends LibraryFetcher
Used byAbstractCockpitModuleConnectorto get the cockpit module libraries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidafterDeploy(CockpitModuleInfo moduleInfo, java.lang.String libDir)Deprecated, for removal: This API element is subject to removal in a future version.since 1808, useLibraryFetcher.fetchLibrary(ModuleInfo, File)insteadvoidafterDeployReverseOrder(CockpitModuleInfo moduleInfo, java.lang.String libDir)Deprecated, for removal: This API element is subject to removal in a future version.since 1808, useLibraryFetcher.fetchLibrary(ModuleInfo, File)insteaddefault booleancanFetchLibrary(ModuleInfo moduleInfo)Deprecated, for removal: This API element is subject to removal in a future version.since 1808, useLibraryFetcher.canFetchLibrary(ModuleInfo)insteadvoidfetchLibrary(CockpitModuleInfo moduleInfo, java.io.File archiveFile)Deprecated, for removal: This API element is subject to removal in a future version.since 1808, useLibraryFetcher.fetchLibrary(ModuleInfo, File)insteaddefault voidinitialize(ModuleInfo moduleInfo, INFO info)Initializes a module with provided info object.default INFOprepare(ModuleInfo moduleInfo)Prepares an info object for specified module.-
Methods inherited from interface com.hybris.cockpitng.core.modules.LibraryFetcher
fetchLibrary
-
-
-
-
Method Detail
-
canFetchLibrary
@Deprecated(since="1808", forRemoval=true) default boolean canFetchLibrary(ModuleInfo moduleInfo)Deprecated, for removal: This API element is subject to removal in a future version.since 1808, useLibraryFetcher.canFetchLibrary(ModuleInfo)insteadDescription copied from interface:LibraryFetcherChecks 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.- Specified by:
canFetchLibraryin interfaceLibraryFetcher- Parameters:
moduleInfo- module to be fetched- Returns:
trueif module is not yet fetched and requires fetching
-
fetchLibrary
@Deprecated(since="1808", forRemoval=true) void fetchLibrary(CockpitModuleInfo moduleInfo, java.io.File archiveFile) throws CockpitModuleDeploymentExceptionDeprecated, for removal: This API element is subject to removal in a future version.since 1808, useLibraryFetcher.fetchLibrary(ModuleInfo, File)instead- Throws:
CockpitModuleDeploymentException
-
afterDeploy
@Deprecated(since="1808", forRemoval=true) void afterDeploy(CockpitModuleInfo moduleInfo, java.lang.String libDir)Deprecated, for removal: This API element is subject to removal in a future version.since 1808, useLibraryFetcher.fetchLibrary(ModuleInfo, File)insteadCalled after all cockpit modules have been deployed, in module order, i.e. first module first.
-
afterDeployReverseOrder
@Deprecated(since="1808", forRemoval=true) void afterDeployReverseOrder(CockpitModuleInfo moduleInfo, java.lang.String libDir)Deprecated, for removal: This API element is subject to removal in a future version.since 1808, useLibraryFetcher.fetchLibrary(ModuleInfo, File)insteadCalled after all cockpit modules have been deployed and afterafterDeploy(CockpitModuleInfo, String)of all modules, in reverse module order, i.e. last module first.
-
prepare
default INFO prepare(ModuleInfo moduleInfo)
Prepares an info object for specified module.Method is called for each module loaded in order of modules loading.
- Parameters:
moduleInfo- information about loaded module- See Also:
initialize(ModuleInfo, Object)
-
initialize
default void initialize(ModuleInfo moduleInfo, INFO info)
Initializes a module with provided info object.Method is called for each module loaded in reversed order of modules loading.
- Parameters:
moduleInfo- information about loaded moduleinfo- info object prepared inprepare(ModuleInfo)method
-
-