Class LocalRepositoryImpl

  • All Implemented Interfaces:
    java.util.EventListener, Repository, org.osgi.framework.AllServiceListener, org.osgi.framework.BundleListener, org.osgi.framework.ServiceListener, org.osgi.framework.SynchronousBundleListener

    public class LocalRepositoryImpl
    extends java.lang.Object
    implements Repository, org.osgi.framework.SynchronousBundleListener, org.osgi.framework.AllServiceListener
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalRepositoryImpl​(org.osgi.framework.BundleContext context, org.apache.felix.utils.log.Logger logger)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addBundle​(org.osgi.framework.Bundle bundle)  
      void bundleChanged​(org.osgi.framework.BundleEvent event)  
      void dispose()  
      long getLastModified()
      Return the last modification date of this repository
      java.lang.String getName()
      Return the name of this repository.
      Resource[] getResources()
      Return the resources for this repository.
      java.lang.String getURI()
      Return the associated URL for the repository.
      private void initialize()  
      private void removeBundle​(org.osgi.framework.Bundle bundle)  
      void serviceChanged​(org.osgi.framework.ServiceEvent event)  
      • Methods inherited from class java.lang.Object

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

      • m_context

        private final org.osgi.framework.BundleContext m_context
      • m_logger

        private final org.apache.felix.utils.log.Logger m_logger
      • m_snapshotTimeStamp

        private long m_snapshotTimeStamp
      • m_localResourceList

        private java.util.Map<java.lang.Long,​Resource> m_localResourceList
    • Constructor Detail

      • LocalRepositoryImpl

        public LocalRepositoryImpl​(org.osgi.framework.BundleContext context,
                                   org.apache.felix.utils.log.Logger logger)
    • Method Detail

      • bundleChanged

        public void bundleChanged​(org.osgi.framework.BundleEvent event)
        Specified by:
        bundleChanged in interface org.osgi.framework.BundleListener
      • serviceChanged

        public void serviceChanged​(org.osgi.framework.ServiceEvent event)
        Specified by:
        serviceChanged in interface org.osgi.framework.ServiceListener
      • addBundle

        private void addBundle​(org.osgi.framework.Bundle bundle)
      • removeBundle

        private void removeBundle​(org.osgi.framework.Bundle bundle)
      • dispose

        public void dispose()
      • getURI

        public java.lang.String getURI()
        Description copied from interface: Repository
        Return the associated URL for the repository.
        Specified by:
        getURI in interface Repository
      • getName

        public java.lang.String getName()
        Description copied from interface: Repository
        Return the name of this repository.
        Specified by:
        getName in interface Repository
        Returns:
        a non-null name
      • getLastModified

        public long getLastModified()
        Description copied from interface: Repository
        Return the last modification date of this repository
        Specified by:
        getLastModified in interface Repository
        Returns:
        the last modification date
      • initialize

        private void initialize()