public class FileWatcherMapping extends FileWatcher
FileWatcher which watches for Dozer mapping XML files and adds/removes
the mappings from a CamelContexts TypeConverterRegistry
whenever files is added, updated or removed.FileWatcher.FilteringFileVisitor| Constructor and Description |
|---|
FileWatcherMapping() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOrUpdateMapping(java.nio.file.Path path) |
void |
destroy() |
org.apache.camel.CamelContext |
getCamelContext() |
void |
init() |
protected void |
removeMapping(java.nio.file.Path path) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
protected static java.lang.String |
toUrlString(java.nio.file.Path path) |
fail, getDirMatcher, getExecutor, getFileMatcher, getFileSystem, getLastModified, getRoot, getWatcher, isMatchesFile, isWatch, setDirMatcher, setDirMatchPattern, setExecutor, setFileMatcher, setFileMatchPattern, setRoot, setRootDirectory, setRootPath, setWatch, setWatcheraddListener, fireListeners, getListeners, getProcessor, removeListener, setProcessorpublic void init()
throws java.io.IOException
init in class FileWatcherjava.io.IOExceptionpublic void destroy()
destroy in class FileWatcherpublic org.apache.camel.CamelContext getCamelContext()
public void setCamelContext(org.apache.camel.CamelContext camelContext)
protected void addOrUpdateMapping(java.nio.file.Path path)
protected void removeMapping(java.nio.file.Path path)
protected static java.lang.String toUrlString(java.nio.file.Path path)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionCopyright © 2015 Red Hat. All Rights Reserved.