public class LocalRepositoryImpl extends java.lang.Object implements Repository, org.osgi.framework.SynchronousBundleListener, org.osgi.framework.AllServiceListener
| Modifier and Type | Field and Description |
|---|---|
private org.osgi.framework.BundleContext |
m_context |
private java.util.Map<java.lang.Long,Resource> |
m_localResourceList |
private org.apache.felix.utils.log.Logger |
m_logger |
private long |
m_snapshotTimeStamp |
LOCAL, SYSTEM| Constructor and Description |
|---|
LocalRepositoryImpl(org.osgi.framework.BundleContext context,
org.apache.felix.utils.log.Logger logger) |
| Modifier and Type | Method and 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) |
private final org.osgi.framework.BundleContext m_context
private final org.apache.felix.utils.log.Logger m_logger
private long m_snapshotTimeStamp
private java.util.Map<java.lang.Long,Resource> m_localResourceList
public LocalRepositoryImpl(org.osgi.framework.BundleContext context,
org.apache.felix.utils.log.Logger logger)
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerpublic void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerprivate void addBundle(org.osgi.framework.Bundle bundle)
private void removeBundle(org.osgi.framework.Bundle bundle)
public void dispose()
public java.lang.String getURI()
RepositorygetURI in interface Repositorypublic java.lang.String getName()
RepositorygetName in interface Repositorypublic long getLastModified()
RepositorygetLastModified in interface Repositorypublic Resource[] getResources()
RepositorygetResources in interface Repositoryprivate void initialize()