public class WatcherSpringContext
extends io.fabric8.watcher.file.FileWatcher
FileWatcher which finds Spring Application Context XML files
using the given file patterns and loads them up and starts them automatically| Modifier and Type | Field and Description |
|---|---|
static String |
SPRING_BEANS_NAMESPACE_URI |
| Constructor and Description |
|---|
WatcherSpringContext() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPath(Path path) |
protected void |
closeContext(String url,
org.springframework.context.support.FileSystemXmlApplicationContext context) |
protected org.springframework.context.support.FileSystemXmlApplicationContext |
createContext(Path path,
String url) |
void |
destroy() |
org.springframework.context.support.FileSystemXmlApplicationContext |
getApplicationContext(String path) |
SortedSet<String> |
getApplicationContextPaths() |
org.springframework.context.ApplicationContext |
getParentApplicationContext() |
void |
init() |
protected void |
removePath(Path path) |
void |
setParentApplicationContext(org.springframework.context.ApplicationContext parentApplicationContext) |
fail, getDirMatcher, getExecutor, getFileMatcher, getFileSystem, getLastModified, getRoot, getWatcher, isMatchesFile, isWatch, setDirMatcher, setDirMatchPattern, setExecutor, setFileMatcher, setFileMatchPattern, setRoot, setRootDirectory, setRootPath, setWatch, setWatcherpublic static final String SPRING_BEANS_NAMESPACE_URI
public void init()
throws IOException
init in class io.fabric8.watcher.file.FileWatcherIOExceptionpublic void destroy()
destroy in class io.fabric8.watcher.file.FileWatcherpublic org.springframework.context.support.FileSystemXmlApplicationContext getApplicationContext(String path)
public org.springframework.context.ApplicationContext getParentApplicationContext()
public void setParentApplicationContext(org.springframework.context.ApplicationContext parentApplicationContext)
protected void addPath(Path path)
protected void removePath(Path path)
protected void closeContext(String url, org.springframework.context.support.FileSystemXmlApplicationContext context)
Copyright © 2011–2014 Red Hat. All rights reserved.