Class DirectoryClassLoader
java.lang.Object
java.lang.ClassLoader
org.frankframework.configuration.classloaders.AbstractClassLoader
org.frankframework.configuration.classloaders.DirectoryClassLoader
- All Implemented Interfaces:
IConfigurationClassLoader, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.core.SmartClassLoader
- Direct Known Subclasses:
RelativePathDirectoryClassLoader, ScanningDirectoryClassLoader
-
Nested Class Summary
Nested classes/interfaces inherited from interface IConfigurationClassLoader
IConfigurationClassLoader.ReportLevel -
Field Summary
Fields inherited from class AbstractClassLoader
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetLocalResource(@NonNull String name) booleanNever allow custom code when using this classloader.voidsetDirectory(String directory) Set the directory from which the configuration files should be loadedtoString()Methods inherited from class AbstractClassLoader
destroy, getBasePath, getConfigurationFile, getResource, getResource, getResources, loadClass, publicDefineClass, 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 IConfigurationClassLoader
getConfigurationName, getReportLevel, setConfigurationNameMethods inherited from interface org.springframework.core.SmartClassLoader
getOriginalClassLoader, isClassReloadable
-
Constructor Details
-
DirectoryClassLoader
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractClassLoader- Throws:
ClassLoaderException
-
isAllowCustomClasses
public boolean isAllowCustomClasses()Never allow custom code when using this classloader. Classes should be placed on the classpath (eg. src/main/resources). -
setDirectory
Set the directory from which the configuration files should be loaded- Throws:
ClassLoaderException- if the directory can't be found
-
getLocalResource
- Specified by:
getLocalResourcein classAbstractClassLoader- Parameters:
name- of the file to search for in the current local classpath- Returns:
- the URL of the file if found in the ClassLoader or
nullwhen the file cannot be found
-
toString
- Overrides:
toStringin classAbstractClassLoader
-