|
||||||||||
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()
Construcotr |
Method Summary | |
---|---|
void |
add(java.lang.String url)
Adds a Bundle URLs to the watch list. |
void |
bundleChanged(org.osgi.framework.BundleEvent event)
|
org.osgi.framework.BundleContext |
getBundleContext()
|
java.io.File |
getBundleExternalLocation(java.io.File localRepository,
org.osgi.framework.Bundle bundle)
Returns the location of the Bundle inside the local maven repository. |
java.util.List<org.osgi.framework.Bundle> |
getBundlesByURL(java.lang.String url)
Returns the bundles that match |
org.osgi.service.cm.ConfigurationAdmin |
getConfigurationAdmin()
|
long |
getInterval()
|
java.io.File |
getLocalRepository()
|
java.util.List<java.lang.String> |
getWatchURLs()
|
protected boolean |
isMavenSnapshotUrl(java.lang.String url)
|
boolean |
isRunning()
|
void |
remove(java.lang.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(java.util.List<java.lang.String> watchURLs)
|
void |
start()
|
void |
stop()
Stops the execution of the thread and releases the singleton instance |
protected boolean |
wildCardMatch(java.lang.String text,
java.lang.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.BundleListener
public void run()
run
in interface java.lang.Runnable
public void add(java.lang.String url)
url
- public void remove(java.lang.String url)
url
- public java.io.File getBundleExternalLocation(java.io.File localRepository, org.osgi.framework.Bundle bundle)
bundle
-
public java.io.File getLocalRepository()
protected org.ops4j.pax.url.maven.commons.MavenConfiguration retrieveMavenConfiguration()
public java.util.List<org.osgi.framework.Bundle> getBundlesByURL(java.lang.String url)
url
-
protected boolean isMavenSnapshotUrl(java.lang.String url)
protected boolean wildCardMatch(java.lang.String text, java.lang.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 java.util.List<java.lang.String> getWatchURLs()
public void setWatchURLs(java.util.List<java.lang.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 |