Class Repository


  • public class Repository
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository  
      private java.nio.file.Path location  
      private org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataRepository  
      private static java.nio.file.Path tempDir  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Repository​(java.nio.file.Path location, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository, org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataRepository)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Repository create​(java.nio.file.Path location)  
      static Repository createTemp()  
      private static java.nio.file.Path createTempDirectory()  
      private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> executeQuery​(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query)  
      java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getAllUnits()  
      org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepository()  
      org.eclipse.equinox.p2.internal.repository.tools.RepositoryDescriptor getDescripror()  
      java.nio.file.Path getLocation()  
      org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()  
      static Repository load​(java.nio.file.Path location)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • tempDir

        private static java.nio.file.Path tempDir
      • location

        private final java.nio.file.Path location
      • artifactRepository

        private final org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository
      • metadataRepository

        private final org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataRepository
    • Constructor Detail

      • Repository

        private Repository​(java.nio.file.Path location,
                           org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository,
                           org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataRepository)
    • Method Detail

      • createTemp

        public static Repository createTemp()
                                     throws org.eclipse.equinox.p2.core.ProvisionException,
                                            java.io.IOException
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
        java.io.IOException
      • create

        public static Repository create​(java.nio.file.Path location)
                                 throws org.eclipse.equinox.p2.core.ProvisionException
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
      • load

        public static Repository load​(java.nio.file.Path location)
                               throws org.eclipse.equinox.p2.core.ProvisionException
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
      • getLocation

        public java.nio.file.Path getLocation()
      • getArtifactRepository

        public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepository()
      • getMetadataRepository

        public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()
      • getDescripror

        public org.eclipse.equinox.p2.internal.repository.tools.RepositoryDescriptor getDescripror()
      • executeQuery

        private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> executeQuery​(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query)
      • getAllUnits

        public java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getAllUnits()
      • createTempDirectory

        private static java.nio.file.Path createTempDirectory()
                                                       throws java.io.IOException
        Throws:
        java.io.IOException