org.openspaces.core.space.mode
Class RefreshSpaceModeContextLoader
java.lang.Object
org.openspaces.core.space.mode.SpaceModeContextLoader
org.openspaces.core.space.mode.RefreshSpaceModeContextLoader
- All Implemented Interfaces:
- EventListener, ClusterInfoAware, BeanLevelPropertiesAware, RefreshableContextLoader, DisposableBean, InitializingBean, ApplicationContextAware, ApplicationListener
public class RefreshSpaceModeContextLoader
- extends SpaceModeContextLoader
- implements RefreshableContextLoader
Extension to SpaceModeContextLoader allowing for the context loader to be refreshable and load
new code. Only works with the Service Grid or the Standalone container.
If a refresh is executed on this context loader, will close the application context of this
context and load it again using a new class loader allowing for new code definitions to be applied.
- Author:
- kimchy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RefreshSpaceModeContextLoader
public RefreshSpaceModeContextLoader()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Overrides:
afterPropertiesSet
in class SpaceModeContextLoader
- Throws:
Exception
loadApplicationContext
protected void loadApplicationContext()
throws Exception
- Description copied from class:
SpaceModeContextLoader
- Loads the application context and adding specific bean factory and bean post processors.
Won't load an application context if one is already defined.
- Overrides:
loadApplicationContext
in class SpaceModeContextLoader
- Throws:
Exception
closeApplicationContext
protected void closeApplicationContext()
- Description copied from class:
SpaceModeContextLoader
- Closes the application context. Won't close that application context if one is not defined.
- Overrides:
closeApplicationContext
in class SpaceModeContextLoader
refresh
public void refresh()
throws Exception
- Specified by:
refresh
in interface RefreshableContextLoader
- Throws:
Exception
Copyright © GigaSpaces.