Package org.eclipse.osgi.storage
Class BundleInfo.Generation
java.lang.Object
org.eclipse.osgi.storage.BundleInfo.Generation
- Enclosing class:
- BundleInfo
- 
Method SummaryModifier and TypeMethodDescriptionadaptModuleRevisionBuilder(ModuleContainerAdaptor.ModuleEvent operation, Module origin, ModuleRevisionBuilder builder) voidvoidclose()voiddelete()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).longgetHeaders(String locale) longgetResourceBundle(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) booleanbooleanbooleanisMRJar()voidsetRevision(ModuleRevision revision) voidstoreContent(File destination, InputStream in, boolean nativeCode) 
- 
Method Details- 
getBundleFile
- 
closepublic void close()
- 
getHeaders
- 
getHeaders
- 
getResourceBundle
- 
clearManifestCachepublic void clearManifestCache()
- 
getGenerationIdpublic long getGenerationId()
- 
getLastModifiedpublic long getLastModified()
- 
isDirectorypublic boolean isDirectory()
- 
hasPackageInfopublic boolean hasPackageInfo()
- 
isMRJarpublic boolean isMRJar()
- 
getContent
- 
getContentType
- 
getStorageHookpublic <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
- 
getExtractFileGets 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
 
- 
getExtractFileGets 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:
- base- the base path that is prepended to the path, may be null
- 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 starting at the specified base
 
- 
storeContent- Throws:
- IOException
 
- 
getBundleInfo
- 
deletepublic void delete()
- 
getEntry
- 
findLibrary
- 
adaptModuleRevisionBuilderpublic ModuleRevisionBuilder adaptModuleRevisionBuilder(ModuleContainerAdaptor.ModuleEvent operation, Module origin, ModuleRevisionBuilder builder) 
 
-