Class LocalRepositoryImpl
- java.lang.Object
-
- org.apache.felix.bundlerepository.impl.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
-
-
Field Summary
-
Fields inherited from interface org.apache.felix.bundlerepository.Repository
LOCAL, SYSTEM
-
-
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 voidbundleChanged(org.osgi.framework.BundleEvent event)voiddispose()longgetLastModified()Return the last modification date of this repositoryjava.lang.StringgetName()Return the name of this repository.Resource[]getResources()Return the resources for this repository.java.lang.StringgetURI()Return the associated URL for the repository.voidserviceChanged(org.osgi.framework.ServiceEvent event)
-
-
-
Method Detail
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent event)
- Specified by:
serviceChangedin interfaceorg.osgi.framework.ServiceListener
-
dispose
public void dispose()
-
getURI
public java.lang.String getURI()
Description copied from interface:RepositoryReturn the associated URL for the repository.- Specified by:
getURIin interfaceRepository
-
getName
public java.lang.String getName()
Description copied from interface:RepositoryReturn the name of this repository.- Specified by:
getNamein interfaceRepository- Returns:
- a non-null name
-
getLastModified
public long getLastModified()
Description copied from interface:RepositoryReturn the last modification date of this repository- Specified by:
getLastModifiedin interfaceRepository- Returns:
- the last modification date
-
getResources
public Resource[] getResources()
Description copied from interface:RepositoryReturn the resources for this repository.- Specified by:
getResourcesin interfaceRepository
-
-