public class DirectoryWatcher
extends java.lang.Thread
implements org.osgi.framework.BundleListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVE_LEVEL |
static java.lang.String |
DIR |
static java.lang.String |
DISABLE_CONFIG_SAVE |
static java.lang.String |
DISABLE_NIO2 |
static java.lang.String |
ENABLE_CONFIG_SAVE |
static java.lang.String |
FILENAME |
static java.lang.String |
FILTER |
static java.lang.String |
FRAGMENT_SCOPE |
static java.lang.String |
LOG_DEFAULT |
static java.lang.String |
LOG_JUL |
static java.lang.String |
LOG_LEVEL |
static java.lang.String |
LOG_STDOUT |
static java.lang.String |
NO_INITIAL_DELAY |
static java.lang.String |
OPTIONAL_SCOPE |
static java.lang.String |
POLL |
static java.lang.String |
SCOPE_ALL |
static java.lang.String |
SCOPE_MANAGED |
static java.lang.String |
SCOPE_NONE |
static java.lang.String |
START_LEVEL |
static java.lang.String |
START_NEW_BUNDLES |
static java.lang.String |
TMPDIR |
static java.lang.String |
UPDATE_WITH_LISTENERS |
static java.lang.String |
USE_START_ACTIVATION_POLICY |
static java.lang.String |
USE_START_TRANSIENT |
Constructor and Description |
---|
DirectoryWatcher(FileInstall fileInstall,
java.util.Map<java.lang.String,java.lang.String> properties,
org.osgi.framework.BundleContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ArtifactListener listener,
long stamp) |
void |
bundleChanged(org.osgi.framework.BundleEvent bundleEvent) |
void |
close() |
protected void |
findBundlesWithFragmentsToRefresh(java.util.Set<org.osgi.framework.Bundle> toRefresh) |
protected void |
findBundlesWithOptionalPackagesToRefresh(java.util.Set<org.osgi.framework.Bundle> toRefresh) |
protected java.util.List<org.apache.felix.utils.manifest.Clause> |
getOptionalImports(java.lang.String importsStr) |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
protected java.util.Set<org.osgi.framework.Bundle> |
getScopedBundles(java.lang.String scope) |
static java.lang.String |
getThreadName(java.util.Map<java.lang.String,java.lang.String> properties) |
void |
removeListener(ArtifactListener listener) |
void |
run()
Main run loop, will traverse the directory, and then handle the delta
between installed and newly found/lost bundles and configurations.
|
void |
start() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
public static final java.lang.String FILENAME
public static final java.lang.String POLL
public static final java.lang.String DIR
public static final java.lang.String LOG_LEVEL
public static final java.lang.String LOG_DEFAULT
public static final java.lang.String TMPDIR
public static final java.lang.String FILTER
public static final java.lang.String START_NEW_BUNDLES
public static final java.lang.String USE_START_TRANSIENT
public static final java.lang.String USE_START_ACTIVATION_POLICY
public static final java.lang.String NO_INITIAL_DELAY
public static final java.lang.String DISABLE_CONFIG_SAVE
public static final java.lang.String ENABLE_CONFIG_SAVE
public static final java.lang.String START_LEVEL
public static final java.lang.String ACTIVE_LEVEL
public static final java.lang.String UPDATE_WITH_LISTENERS
public static final java.lang.String OPTIONAL_SCOPE
public static final java.lang.String FRAGMENT_SCOPE
public static final java.lang.String DISABLE_NIO2
public static final java.lang.String SCOPE_NONE
public static final java.lang.String SCOPE_MANAGED
public static final java.lang.String SCOPE_ALL
public static final java.lang.String LOG_STDOUT
public static final java.lang.String LOG_JUL
public DirectoryWatcher(FileInstall fileInstall, java.util.Map<java.lang.String,java.lang.String> properties, org.osgi.framework.BundleContext context)
public static java.lang.String getThreadName(java.util.Map<java.lang.String,java.lang.String> properties)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void start()
start
in class java.lang.Thread
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void bundleChanged(org.osgi.framework.BundleEvent bundleEvent)
bundleChanged
in interface org.osgi.framework.BundleListener
public void close()
protected java.util.Set<org.osgi.framework.Bundle> getScopedBundles(java.lang.String scope)
protected void findBundlesWithFragmentsToRefresh(java.util.Set<org.osgi.framework.Bundle> toRefresh)
protected void findBundlesWithOptionalPackagesToRefresh(java.util.Set<org.osgi.framework.Bundle> toRefresh)
protected java.util.List<org.apache.felix.utils.manifest.Clause> getOptionalImports(java.lang.String importsStr)
public void addListener(ArtifactListener listener, long stamp)
public void removeListener(ArtifactListener listener)
Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.