Interface PluginSpringContextListener
-
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
PluginAwareSpringAccessor,PluginSpringContextLoadErrorProcessor
public interface PluginSpringContextListener extends EventListener
- Since:
- 4.5
- Author:
- Eugene Petrenko
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcontextCreated(org.springframework.context.ApplicationContext applicationContext, PluginInfo plugin)Called just after plugin context is created, but beforeConfigurableApplicationContext.refresh()is called.voidcontextFailedToLoad(org.springframework.context.ApplicationContext applicationContext, PluginInfo plugin, Throwable loadException)May be called after plugin context is created andConfigurableApplicationContext.refresh()is called if plugin spring context has failed to initialize.voidcontextLoaded(org.springframework.context.ApplicationContext applicationContext, PluginInfo plugin)Called just after plugin context is created andConfigurableApplicationContext.refresh()is called.
-
-
-
Method Detail
-
contextCreated
void contextCreated(org.springframework.context.ApplicationContext applicationContext, PluginInfo plugin)Called just after plugin context is created, but beforeConfigurableApplicationContext.refresh()is called.- Parameters:
applicationContext- plugin's application contextplugin- plugin descriptor
-
contextLoaded
void contextLoaded(org.springframework.context.ApplicationContext applicationContext, PluginInfo plugin)Called just after plugin context is created andConfigurableApplicationContext.refresh()is called. This method called aftercontextCreated(org.springframework.context.ApplicationContext, jetbrains.buildServer.plugins.bean.PluginInfo)is called. This method may not be called is plugin context initialization exception is thrown.#contextFailedToLoad(org.springframework.context.ApplicationContext,jetbrains.buildServer.plugins.bean.PluginInfo, Exception)will be called than.- Parameters:
applicationContext- plugin's application contextplugin- plugin descriptor
-
contextFailedToLoad
void contextFailedToLoad(org.springframework.context.ApplicationContext applicationContext, PluginInfo plugin, Throwable loadException)May be called after plugin context is created andConfigurableApplicationContext.refresh()is called if plugin spring context has failed to initialize. This method called aftercontextCreated(org.springframework.context.ApplicationContext, jetbrains.buildServer.plugins.bean.PluginInfo)is called. This method may not be called if plugin context has initialized successufully.contextLoaded(org.springframework.context.ApplicationContext, jetbrains.buildServer.plugins.bean.PluginInfo)method will be called than.- Parameters:
applicationContext- plugin's application contextplugin- plugin descriptorloadException-
-
-