public class IbisContext extends IbisApplicationContext
IbisApplicationContext.BootState
APP_CONSTANTS
Constructor and Description |
---|
IbisContext() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down the IbisContext, and therefore the Spring context
|
void |
fullReload()
Completely rebuilds the ibisContext and therefore also the Spring context
|
String |
getApplicationName() |
void |
init()
Creates the Spring context, and load the configuration.
|
void |
init(boolean reconnect)
Creates the Spring context, and load the configuration.
|
boolean |
isLoadingConfigs() |
void |
load(String configurationName)
Loads, digests and starts the specified configuration, or all configurations
Does not check if the configuration already exists.
|
void |
log(String message,
MessageKeeper.MessageKeeperLevel level,
Exception e) |
void |
reload(String configurationName)
Reloads the given configuration.
|
protected Map<String,Class<? extends IConfigurationClassLoader>> |
retrieveAllConfigNames()
Helper method to create stubbed configurations used in JunitTests
|
void |
unload(String configurationName)
Be aware that the configuration may be unloaded but it's resources wont!
There is currently no way to cleanup old ClassLoaders, these are kept in memory.
|
createApplicationContext, createBeanAutowireByName, getApplicationContext, getBean, getBootState, getSpringConfigurationFiles, getStartupException, setParentContext
public void init()
public void init(boolean reconnect)
reconnect
- retry startup when failures occurorg.springframework.beans.factory.BeanCreationException
- when Spring can't start upClassUtils.getResourceURL(IScopeProvider, String)
,
AppConstants.getInstance(ClassLoader)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class IbisApplicationContext
IbisApplicationContext.close()
public void reload(String configurationName)
public void unload(String configurationName)
reload(String)
where possible.public void fullReload()
public void load(String configurationName)
configurationName
- name of the configuration to load or null when you want to load all configurationsClassLoaderManager.get(String)
,
ConfigurationUtils.retrieveAllConfigNames(ApplicationContext)
,
createAndConfigureConfigurationWithClassLoader(ClassLoader, String, ClassLoaderException)
protected Map<String,Class<? extends IConfigurationClassLoader>> retrieveAllConfigNames()
public void log(String message, MessageKeeper.MessageKeeperLevel level, Exception e)
public String getApplicationName()
public boolean isLoadingConfigs()
Copyright © 2023 Frank!Framework. All rights reserved.