Package org.eclipse.osgi.storage
Class BundleInfo.Generation
java.lang.Object
org.eclipse.osgi.storage.BundleInfo.Generation
- Enclosing class:
- BundleInfo
-
Method Summary
Modifier and TypeMethodDescriptionadaptModuleRevisionBuilder
(ModuleContainerAdaptor.ModuleEvent operation, Module origin, ModuleRevisionBuilder builder) void
void
close()
void
delete()
findLibrary
(String libname) getDomain
(boolean create) getExtractFile
(String path) Gets called by BundleFile duringBundleFile.getFile(String, boolean)
.getExtractFile
(String base, String path) Gets called by BundleFile duringBundleFile.getFile(String, boolean)
.long
getHeaders
(String locale) long
getResourceBundle
(String locale) <S,
L, H extends org.eclipse.osgi.internal.hookregistry.StorageHookFactory.StorageHook<S, L>>
HgetStorageHook
(Class<? extends org.eclipse.osgi.internal.hookregistry.StorageHookFactory<S, L, H>> factoryClass) boolean
boolean
boolean
isMRJar()
void
setRevision
(ModuleRevision revision) void
storeContent
(File destination, InputStream in, boolean nativeCode)
-
Method Details
-
getBundleFile
-
close
public void close() -
getHeaders
-
getHeaders
-
getResourceBundle
-
clearManifestCache
public void clearManifestCache() -
getGenerationId
public long getGenerationId() -
getLastModified
public long getLastModified() -
isDirectory
public boolean isDirectory() -
hasPackageInfo
public boolean hasPackageInfo() -
isMRJar
public boolean isMRJar() -
getContent
-
getContentType
-
getStorageHook
public <S,L, H getStorageHookH extends org.eclipse.osgi.internal.hookregistry.StorageHookFactory.StorageHook<S, L>> (Class<? extends org.eclipse.osgi.internal.hookregistry.StorageHookFactory<S, L, H>> factoryClass) -
getRevision
-
setRevision
-
getDomain
-
getDomain
-
getExtractFile
Gets called by BundleFile duringBundleFile.getFile(String, boolean)
. This method will allocate a File object where content of the specified path may be stored for this generation. The returned File object may not exist if the content has not previously been stored.- Parameters:
path
- the path to the content to extract from the generation- Returns:
- a file object where content of the specified path may be stored.
- Throws:
Storage.StorageException
- if the path will escape the persistent storage of the generation
-
getExtractFile
Gets called by BundleFile duringBundleFile.getFile(String, boolean)
. This method will allocate a File object where content of the specified path may be stored for this generation. The returned File object may not exist if the content has not previously been stored.- Parameters:
path
- the path to the content to extract from the generationbase
- the base path that is prepended to the path, may be null- Returns:
- a file object where content of the specified path may be stored.
- Throws:
Storage.StorageException
- if the path will escape the persistent storage of the generation starting at the specified base
-
storeContent
- Throws:
IOException
-
getBundleInfo
-
delete
public void delete() -
getEntry
-
findLibrary
-
adaptModuleRevisionBuilder
public ModuleRevisionBuilder adaptModuleRevisionBuilder(ModuleContainerAdaptor.ModuleEvent operation, Module origin, ModuleRevisionBuilder builder)
-