Class BundleInfo.Generation

java.lang.Object
org.eclipse.osgi.storage.BundleInfo.Generation
Enclosing class:
BundleInfo

public final class BundleInfo.Generation extends Object
  • Method Details

    • getBundleFile

      public BundleFile getBundleFile()
    • close

      public void close()
    • getHeaders

      public Dictionary<String,String> getHeaders()
    • getHeaders

      public Dictionary<String,String> getHeaders(String locale)
    • getResourceBundle

      public ResourceBundle getResourceBundle(String locale)
    • 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

      public File getContent()
    • getContentType

      public ContentProvider.Type getContentType()
    • getStorageHook

      public <S, L, H extends org.eclipse.osgi.internal.hookregistry.StorageHookFactory.StorageHook<S, L>> H getStorageHook(Class<? extends org.eclipse.osgi.internal.hookregistry.StorageHookFactory<S,L,H>> factoryClass)
    • getRevision

      public ModuleRevision getRevision()
    • setRevision

      public void setRevision(ModuleRevision revision)
    • getDomain

      public ProtectionDomain getDomain()
    • getDomain

      public ProtectionDomain getDomain(boolean create)
    • getExtractFile

      public File getExtractFile(String path)
      Gets called by BundleFile during BundleFile.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

      public File getExtractFile(String base, String path)
      Gets called by BundleFile during BundleFile.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
      base - 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

      public void storeContent(File destination, InputStream in, boolean nativeCode) throws IOException
      Throws:
      IOException
    • getBundleInfo

      public BundleInfo getBundleInfo()
    • delete

      public void delete()
    • getEntry

      public URL getEntry(String path)
    • findLibrary

      public String findLibrary(String libname)
    • adaptModuleRevisionBuilder

      public ModuleRevisionBuilder adaptModuleRevisionBuilder(ModuleContainerAdaptor.ModuleEvent operation, Module origin, ModuleRevisionBuilder builder)