Interface IConfigurationClassLoader
- All Known Implementing Classes:
AbstractBytesClassLoader
,AbstractClassLoader
,AbstractJarBytesClassLoader
,DatabaseClassLoader
,DirectoryClassLoader
,DummyClassLoader
,JarFileClassLoader
,ScanningDirectoryClassLoader
,WebAppClassLoader
public interface IConfigurationClassLoader
Interface for IBIS Configuration ClassLoaders.
- Author:
- Niels Meijer
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(IbisContext ibisContext, String configurationName) Configure theIConfigurationClassLoader
's implementationvoid
destroy()
Called upon destroying (and thus removing) the IConfigurationClassLoaderRetrieve the name of the configuration that uses thisIConfigurationClassLoader
getResource
(String name) void
reload()
Unload the current IConfigurationClassLoader and load again upon successful unload.void
setReportLevel
(String level) Defines the log level for errors caused by theconfigure
method
-
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 theconfigure
method- Parameters:
level
- ReportLevel in string format to be parsed by the ClassLoaderManager digester
-
getReportLevel
IConfigurationClassLoader.ReportLevel getReportLevel()- Returns:
- the
IConfigurationClassLoader.ReportLevel
set 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
-