public class BundleWatcher extends Object implements Runnable, org.osgi.framework.BundleListener
| Constructor and Description |
|---|
BundleWatcher()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String url)
Adds a Bundle URLs to the watch list.
|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
org.osgi.framework.BundleContext |
getBundleContext() |
File |
getBundleExternalLocation(File localRepository,
org.osgi.framework.Bundle bundle)
Returns the location of the Bundle inside the local maven repository.
|
List<org.osgi.framework.Bundle> |
getBundlesByURL(String url)
Returns the bundles that match
|
org.osgi.service.cm.ConfigurationAdmin |
getConfigurationAdmin() |
long |
getInterval() |
File |
getLocalRepository() |
List<String> |
getWatchURLs() |
protected boolean |
isMavenSnapshotUrl(String url) |
boolean |
isRunning() |
void |
remove(String url)
Removes a bundle URLs from the watch list.
|
protected org.ops4j.pax.url.maven.commons.MavenConfiguration |
retrieveMavenConfiguration() |
void |
run() |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin) |
void |
setInterval(long interval) |
void |
setWatchURLs(List<String> watchURLs) |
void |
start() |
void |
stop()
Stops the execution of the thread and releases the singleton instance
|
protected boolean |
wildCardMatch(String text,
String pattern)
Matches text using a pattern containing wildcards.
|
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerpublic void add(String url)
url - public void remove(String url)
url - public File getBundleExternalLocation(File localRepository, org.osgi.framework.Bundle bundle)
bundle - public File getLocalRepository()
protected org.ops4j.pax.url.maven.commons.MavenConfiguration retrieveMavenConfiguration()
public List<org.osgi.framework.Bundle> getBundlesByURL(String url)
url - protected boolean isMavenSnapshotUrl(String url)
protected boolean wildCardMatch(String text, String pattern)
text - pattern - public void start()
public void stop()
public org.osgi.service.cm.ConfigurationAdmin getConfigurationAdmin()
public void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
public org.osgi.framework.BundleContext getBundleContext()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public long getInterval()
public void setInterval(long interval)
public boolean isRunning()
Copyright © 2007-2014 FuseSource, Corp.. All Rights Reserved.