Class ScanningDirectoryClassLoader
java.lang.Object
java.lang.ClassLoader
org.frankframework.configuration.classloaders.AbstractClassLoader
org.frankframework.configuration.classloaders.DirectoryClassLoader
org.frankframework.configuration.classloaders.ScanningDirectoryClassLoader
- All Implemented Interfaces:
IConfigurationClassLoader
,org.springframework.core.SmartClassLoader
Actively scans the configuration directory for file changes.
When it finds a file change it will automatically try to reload the configuration
Has a default cooldown after a change has been detected before it can be triggered again.
- Author:
- Niels Meijer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.frankframework.configuration.classloaders.IConfigurationClassLoader
IConfigurationClassLoader.ReportLevel
-
Field Summary
Fields inherited from class org.frankframework.configuration.classloaders.AbstractClassLoader
log
Fields inherited from interface org.frankframework.configuration.classloaders.IConfigurationClassLoader
CLASSPATH_RESOURCE_SCHEME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(IbisContext ibisContext, String configurationName) Configure theIConfigurationClassLoader
's implementationvoid
destroy()
Called upon destroying (and thus removing) the IConfigurationClassLoaderprotected void
scan()
void
setScanInterval
(int interval) Methods inherited from class org.frankframework.configuration.classloaders.DirectoryClassLoader
getDirectory, getLocalResource, setDirectory, toString
Methods inherited from class org.frankframework.configuration.classloaders.AbstractClassLoader
getAllowCustomClasses, getBasePath, getConfigurationFile, getConfigurationName, getIbisContext, getReportLevel, getResource, getResource, getResources, loadClass, publicDefineClass, reload, setAllowCustomClasses, setBasePath, setConfigurationFile, setReportLevel
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.core.SmartClassLoader
getOriginalClassLoader, isClassReloadable
-
Constructor Details
-
ScanningDirectoryClassLoader
-
-
Method Details
-
configure
public void configure(IbisContext ibisContext, String configurationName) throws ClassLoaderException Description copied from interface:IConfigurationClassLoader
Configure theIConfigurationClassLoader
's implementation- Specified by:
configure
in interfaceIConfigurationClassLoader
- Overrides:
configure
in classDirectoryClassLoader
- Throws:
ClassLoaderException
- when theIConfigurationClassLoader
's implementation cannot retrieve or load the configuration files
-
destroy
public void destroy()Description copied from interface:IConfigurationClassLoader
Called upon destroying (and thus removing) the IConfigurationClassLoader- Specified by:
destroy
in interfaceIConfigurationClassLoader
- Overrides:
destroy
in classAbstractClassLoader
-
setScanInterval
- Throws:
ConfigurationException
-
scan
protected void scan()
-