|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.karaf.shell.dev.watch.BundleWatcher
public class BundleWatcher
A Runnable singleton which watches at the defined location for bundle updates.
| Constructor Summary | |
|---|---|
BundleWatcher()
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BundleWatcher()
| Method Detail |
|---|
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerpublic void run()
run in interface Runnablepublic 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 List<String> getWatchURLs()
public void setWatchURLs(List<String> watchURLs)
public long getInterval()
public void setInterval(long interval)
public boolean isRunning()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||