Interface IConfigurationClassLoader
- All Known Implementing Classes:
AbstractBytesClassLoader,AbstractClassLoader,AbstractJarBytesClassLoader,DatabaseClassLoader,DirectoryClassLoader,DummyClassLoader,JarFileClassLoader,RelativePathDirectoryClassLoader,ScanningDirectoryClassLoader,WebAppClassLoader
public interface IConfigurationClassLoader
Interface for IBIS Configuration ClassLoaders.
- Author:
- Niels Meijer
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(IbisContext ibisContext, String configurationName) Configure theIConfigurationClassLoader's implementationvoiddestroy()Called upon destroying (and thus removing) the IConfigurationClassLoaderRetrieve the name of the configuration that uses thisIConfigurationClassLoadergetResource(String name) voidreload()Unload the current IConfigurationClassLoader and load again upon successful unload.voidsetReportLevel(String level) Defines the log level for errors caused by theconfiguremethod
-
Field Details
-
CLASSPATH_RESOURCE_SCHEME
- See Also:
-
-
Method Details
-
getResource
-
configure
Configure theIConfigurationClassLoader's implementation- Throws:
ClassLoaderException- when theIConfigurationClassLoader's implementation cannot retrieve or load the configuration files
-
getConfigurationName
String getConfigurationName()Retrieve the name of the configuration that uses thisIConfigurationClassLoader -
setReportLevel
Defines the log level for errors caused by theconfiguremethod- Parameters:
level- ReportLevel in string format to be parsed by the ClassLoaderManager digester
-
getReportLevel
IConfigurationClassLoader.ReportLevel getReportLevel()- Returns:
- the
IConfigurationClassLoader.ReportLevelset for thisIConfigurationClassLoader
-
reload
Unload the current IConfigurationClassLoader and load again upon successful unload.- Throws:
ClassLoaderException
-
destroy
void destroy()Called upon destroying (and thus removing) the IConfigurationClassLoader
-