Class FedoraBundleIndex


  • public class FedoraBundleIndex
    extends java.lang.Object
    An index for bundles (OSGi, Feature) under a specified location.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<org.eclipse.equinox.p2.metadata.IArtifactKey,​java.io.File> index  
      private org.slf4j.Logger logger  
      private java.io.File root  
    • Constructor Summary

      Constructors 
      Constructor Description
      FedoraBundleIndex​(java.io.File root)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(org.eclipse.equinox.p2.metadata.IArtifactKey key)  
      private java.util.Collection<java.io.File> filterBundles​(java.lang.String classifier)  
      private void gatherAllBundles​(java.io.File dir)  
      java.util.Collection<org.eclipse.equinox.p2.metadata.IArtifactKey> getAllArtifactKeys()  
      java.util.Collection<java.io.File> getAllBundles​(java.lang.String classifier)  
      java.io.File getFileForKey​(org.eclipse.equinox.p2.metadata.IArtifactKey key)  
      org.eclipse.equinox.p2.metadata.IArtifactKey getKeyForFile​(java.io.File file)  
      private void putInIndex​(org.eclipse.equinox.p2.metadata.IArtifactKey key, java.io.File file)  
      • Methods inherited from class java.lang.Object

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

      • root

        private java.io.File root
      • index

        private java.util.Map<org.eclipse.equinox.p2.metadata.IArtifactKey,​java.io.File> index
      • logger

        private final org.slf4j.Logger logger
    • Constructor Detail

      • FedoraBundleIndex

        public FedoraBundleIndex​(java.io.File root)
    • Method Detail

      • getAllBundles

        public java.util.Collection<java.io.File> getAllBundles​(java.lang.String classifier)
      • filterBundles

        private java.util.Collection<java.io.File> filterBundles​(java.lang.String classifier)
      • getAllArtifactKeys

        public java.util.Collection<org.eclipse.equinox.p2.metadata.IArtifactKey> getAllArtifactKeys()
      • getFileForKey

        public java.io.File getFileForKey​(org.eclipse.equinox.p2.metadata.IArtifactKey key)
      • getKeyForFile

        public org.eclipse.equinox.p2.metadata.IArtifactKey getKeyForFile​(java.io.File file)
      • containsKey

        public boolean containsKey​(org.eclipse.equinox.p2.metadata.IArtifactKey key)
      • gatherAllBundles

        private void gatherAllBundles​(java.io.File dir)
      • putInIndex

        private void putInIndex​(org.eclipse.equinox.p2.metadata.IArtifactKey key,
                                java.io.File file)