public class FileWatcherDynamicCompiler
extends io.fabric8.watcher.file.FileWatcher
implements io.fabric8.jaxb.dynamic.DynamicCompiler
FileWatcher which implements the DynamicCompiler API by
watching for XSD files and recompiling the JAXB context via XJC whenever a
new schema is added, updated or removed.| Constructor and Description |
|---|
FileWatcherDynamicCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCompilePath(Path path) |
protected void |
doCompile() |
ClassLoader |
getClassLoader() |
long |
getCompileDelayMillis() |
io.fabric8.jaxb.dynamic.CompileResults |
getCompileResults()
Returns the latest compiler results
|
void |
init() |
protected void |
removeCompilePath(Path path) |
protected void |
scheduleRecompile() |
void |
setClassLoader(ClassLoader classLoader) |
void |
setCompileDelayMillis(long compileDelayMillis) |
void |
setHandler(io.fabric8.jaxb.dynamic.CompileResultsHandler handler) |
destroy, fail, getDirMatcher, getExecutor, getFileMatcher, getFileSystem, getLastModified, getRoot, getWatcher, isMatchesFile, isWatch, setDirMatcher, setDirMatchPattern, setExecutor, setFileMatcher, setFileMatchPattern, setRoot, setRootDirectory, setRootPath, setWatch, setWatcherpublic void setHandler(io.fabric8.jaxb.dynamic.CompileResultsHandler handler)
throws Exception
setHandler in interface io.fabric8.jaxb.dynamic.DynamicCompilerExceptionpublic void init()
throws IOException
init in class io.fabric8.watcher.file.FileWatcherIOExceptionpublic ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public io.fabric8.jaxb.dynamic.CompileResults getCompileResults()
public long getCompileDelayMillis()
public void setCompileDelayMillis(long compileDelayMillis)
protected void addCompilePath(Path path)
protected void removeCompilePath(Path path)
protected void scheduleRecompile()
protected void doCompile()
Copyright © 2011–2014 Red Hat. All rights reserved.