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.beans.factory.DisposableBean, 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 IConfigurationClassLoader
IConfigurationClassLoader.ReportLevel -
Field Summary
Fields inherited from class AbstractClassLoader
logFields inherited from interface IConfigurationClassLoader
CLASSPATH_RESOURCE_SCHEME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(@Nullable IbisContext ibisContext, @NonNull String configurationName) Configure theIConfigurationClassLoader's implementationvoiddestroy()protected voidscan()voidsetScanInterval(int interval) Methods inherited from class DirectoryClassLoader
getAllowCustomClasses, getDirectory, getLocalResource, setDirectory, toStringMethods inherited from class AbstractClassLoader
getBasePath, getConfigurationFile, getConfigurationName, getIbisManager, getReportLevel, getResource, getResource, getResources, loadClass, publicDefineClass, setAllowCustomClasses, setBasePath, setConfigurationFile, setReportLevelMethods inherited from class 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, setSignersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.core.SmartClassLoader
getOriginalClassLoader, isClassReloadable
-
Constructor Details
-
ScanningDirectoryClassLoader
-
-
Method Details
-
configure
public void configure(@Nullable IbisContext ibisContext, @NonNull String configurationName) throws ClassLoaderException Description copied from interface:IConfigurationClassLoaderConfigure theIConfigurationClassLoader's implementation- Specified by:
configurein interfaceIConfigurationClassLoader- Overrides:
configurein classDirectoryClassLoader- Throws:
ClassLoaderException- when theIConfigurationClassLoader's implementation cannot retrieve or load the configuration files
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Overrides:
destroyin classAbstractClassLoader
-
setScanInterval
- Throws:
ConfigurationException
-
scan
protected void scan()
-