public class FileWatcherDynamicCompiler extends FileWatcher implements 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.FileWatcher.FilteringFileVisitor| Constructor and Description |
|---|
FileWatcherDynamicCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCompilePath(java.nio.file.Path path) |
protected void |
doCompile() |
java.lang.ClassLoader |
getClassLoader() |
long |
getCompileDelayMillis() |
CompileResults |
getCompileResults()
Returns the latest compiler results
|
void |
init() |
protected void |
removeCompilePath(java.nio.file.Path path) |
protected void |
scheduleRecompile() |
void |
setClassLoader(java.lang.ClassLoader classLoader) |
void |
setCompileDelayMillis(long compileDelayMillis) |
void |
setHandler(CompileResultsHandler handler) |
destroy, 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 setHandler(CompileResultsHandler handler) throws java.lang.Exception
setHandler in interface DynamicCompilerjava.lang.Exceptionpublic void init()
throws java.io.IOException
init in class FileWatcherjava.io.IOExceptionpublic java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
public CompileResults getCompileResults()
public long getCompileDelayMillis()
public void setCompileDelayMillis(long compileDelayMillis)
protected void addCompilePath(java.nio.file.Path path)
protected void removeCompilePath(java.nio.file.Path path)
protected void scheduleRecompile()
protected void doCompile()
Copyright © 2014 Red Hat. All Rights Reserved.