public class FileWatcherMapping extends FileWatcher
FileWatcher
which watches for Dozer mapping XML files and adds/removes
the mappings from a CamelContext
s 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, setWatcher
addListener, fireListeners, getListeners, getProcessor, removeListener, setProcessor
public void init() throws java.io.IOException
init
in class FileWatcher
java.io.IOException
public void destroy()
destroy
in class FileWatcher
public 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.MalformedURLException
Copyright © 2014 Red Hat. All Rights Reserved.