public class DirectoryWatcher extends Thread implements org.osgi.framework.BundleListener
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE_LEVEL |
static String |
DIR |
static String |
DISABLE_CONFIG_SAVE |
static String |
DISABLE_NIO2 |
static String |
ENABLE_CONFIG_SAVE |
static String |
FILENAME |
static String |
FILTER |
static String |
FRAGMENT_SCOPE |
static String |
LOG_DEFAULT |
static String |
LOG_JUL |
static String |
LOG_LEVEL |
static String |
LOG_STDOUT |
static String |
NO_INITIAL_DELAY |
static String |
OPTIONAL_SCOPE |
static String |
POLL |
static String |
SCOPE_ALL |
static String |
SCOPE_MANAGED |
static String |
SCOPE_NONE |
static String |
START_LEVEL |
static String |
START_NEW_BUNDLES |
static String |
TMPDIR |
static String |
UPDATE_WITH_LISTENERS |
static String |
USE_START_ACTIVATION_POLICY |
static String |
USE_START_TRANSIENT |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
DirectoryWatcher(FileInstall fileInstall,
Map<String,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(Set<org.osgi.framework.Bundle> toRefresh) |
protected void |
findBundlesWithOptionalPackagesToRefresh(Set<org.osgi.framework.Bundle> toRefresh) |
protected List<org.apache.felix.utils.manifest.Clause> |
getOptionalImports(String importsStr) |
Map<String,String> |
getProperties() |
protected Set<org.osgi.framework.Bundle> |
getScopedBundles(String scope) |
static String |
getThreadName(Map<String,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 String FILENAME
public static final String POLL
public static final String DIR
public static final String LOG_LEVEL
public static final String LOG_DEFAULT
public static final String TMPDIR
public static final String FILTER
public static final String START_NEW_BUNDLES
public static final String USE_START_TRANSIENT
public static final String USE_START_ACTIVATION_POLICY
public static final String NO_INITIAL_DELAY
public static final String DISABLE_CONFIG_SAVE
public static final String ENABLE_CONFIG_SAVE
public static final String START_LEVEL
public static final String ACTIVE_LEVEL
public static final String UPDATE_WITH_LISTENERS
public static final String OPTIONAL_SCOPE
public static final String FRAGMENT_SCOPE
public static final String DISABLE_NIO2
public static final String SCOPE_NONE
public static final String SCOPE_MANAGED
public static final String SCOPE_ALL
public static final String LOG_STDOUT
public static final String LOG_JUL
public DirectoryWatcher(FileInstall fileInstall, Map<String,String> properties, org.osgi.framework.BundleContext context)
public void run()
public void bundleChanged(org.osgi.framework.BundleEvent bundleEvent)
bundleChanged
in interface org.osgi.framework.BundleListener
public void close()
protected void findBundlesWithFragmentsToRefresh(Set<org.osgi.framework.Bundle> toRefresh)
protected void findBundlesWithOptionalPackagesToRefresh(Set<org.osgi.framework.Bundle> toRefresh)
protected List<org.apache.felix.utils.manifest.Clause> getOptionalImports(String importsStr)
public void addListener(ArtifactListener listener, long stamp)
public void removeListener(ArtifactListener listener)
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.