Class PluginSpringContextLoadErrorProcessor
- java.lang.Object
-
- jetbrains.buildServer.plugins.spring.PluginSpringContextLoadErrorProcessor
-
- All Implemented Interfaces:
EventListener,PluginSpringContextListener
public class PluginSpringContextLoadErrorProcessor extends Object implements PluginSpringContextListener
-
-
Constructor Summary
Constructors Constructor Description PluginSpringContextLoadErrorProcessor(PluginMessagesHolder holder, PluginManager pluginManager)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
PluginSpringContextLoadErrorProcessor
public PluginSpringContextLoadErrorProcessor(@NotNull PluginMessagesHolder holder, @NotNull PluginManager pluginManager)
-
-
Method Detail
-
contextCreated
public void contextCreated(org.springframework.context.ApplicationContext applicationContext, PluginInfo plugin)Description copied from interface:PluginSpringContextListenerCalled just after plugin context is created, but beforeConfigurableApplicationContext.refresh()is called.- Specified by:
contextCreatedin interfacePluginSpringContextListener- Parameters:
applicationContext- plugin's application contextplugin- plugin descriptor
-
contextLoaded
public void contextLoaded(org.springframework.context.ApplicationContext applicationContext, PluginInfo plugin)Description copied from interface:PluginSpringContextListenerCalled just after plugin context is created andConfigurableApplicationContext.refresh()is called. This method called afterPluginSpringContextListener.contextCreated(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.- Specified by:
contextLoadedin interfacePluginSpringContextListener- Parameters:
applicationContext- plugin's application contextplugin- plugin descriptor
-
contextFailedToLoad
public void contextFailedToLoad(org.springframework.context.ApplicationContext applicationContext, PluginInfo plugin, Throwable loadException)Description copied from interface:PluginSpringContextListenerMay be called after plugin context is created andConfigurableApplicationContext.refresh()is called if plugin spring context has failed to initialize. This method called afterPluginSpringContextListener.contextCreated(org.springframework.context.ApplicationContext, jetbrains.buildServer.plugins.bean.PluginInfo)is called. This method may not be called if plugin context has initialized successufully.PluginSpringContextListener.contextLoaded(org.springframework.context.ApplicationContext, jetbrains.buildServer.plugins.bean.PluginInfo)method will be called than.- Specified by:
contextFailedToLoadin interfacePluginSpringContextListener- Parameters:
applicationContext- plugin's application contextplugin- plugin descriptor
-
-