public class WatcherBlueprintContainer extends FileWatcher
FileWatcher
which finds OSGi Blueprint XML files
using the given file patterns and loads them up and starts them automaticallyFileWatcher.FilteringFileVisitor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BLUEPRINT_NAMESPACE_URI |
Constructor and Description |
---|
WatcherBlueprintContainer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPath(java.nio.file.Path path) |
protected void |
closeContainer(java.net.URL url,
org.osgi.service.blueprint.container.BlueprintContainer container) |
protected org.osgi.service.blueprint.container.BlueprintContainer |
createContainer(java.nio.file.Path path,
java.net.URL url) |
void |
destroy() |
java.lang.ClassLoader |
getClassLoader() |
org.osgi.service.blueprint.container.BlueprintContainer |
getContainer(java.net.URL url) |
java.util.Set<java.net.URL> |
getContainerURLs() |
org.osgi.service.blueprint.container.BlueprintContainer |
getParentContainer() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
void |
init() |
protected void |
removePath(java.nio.file.Path path) |
void |
setClassLoader(java.lang.ClassLoader classLoader) |
void |
setParentContainer(org.osgi.service.blueprint.container.BlueprintContainer parentContainer) |
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties) |
protected java.net.URL |
toUrl(java.nio.file.Path path) |
fail, getDirMatcher, getExecutor, getFileMatcher, getFileSystem, getLastModified, getRoot, getWatcher, isMatchesFile, isWatch, setDirMatcher, setDirMatchPattern, setExecutor, setFileMatcher, setFileMatchPattern, setRoot, setRootDirectory, setRootPath, setWatch, setWatcher
addListener, fireListeners, getListeners, getProcessor, removeListener, setProcessor
public static final java.lang.String BLUEPRINT_NAMESPACE_URI
public void init() throws java.io.IOException
init
in class FileWatcher
java.io.IOException
public void destroy()
destroy
in class FileWatcher
public java.util.Set<java.net.URL> getContainerURLs()
public org.osgi.service.blueprint.container.BlueprintContainer getContainer(java.net.URL url)
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
public org.osgi.service.blueprint.container.BlueprintContainer getParentContainer()
public void setParentContainer(org.osgi.service.blueprint.container.BlueprintContainer parentContainer)
protected void addPath(java.nio.file.Path path)
protected void removePath(java.nio.file.Path path)
protected org.osgi.service.blueprint.container.BlueprintContainer createContainer(java.nio.file.Path path, java.net.URL url) throws java.lang.Exception
java.lang.Exception
protected void closeContainer(java.net.URL url, org.osgi.service.blueprint.container.BlueprintContainer container)
protected java.net.URL toUrl(java.nio.file.Path path)
Copyright © 2015 Red Hat. All Rights Reserved.