Class RestoreMaven2ParticlesOnServerStartupEventListener
java.lang.Object
com.atlassian.bamboo.plugins.maven.dependencies.events.RestoreMaven2ParticlesOnServerStartupEventListener
- All Implemented Interfaces:
BambooEventListener<ServerStartedEvent>,HibernateEventListener<ServerStartedEvent>
public class RestoreMaven2ParticlesOnServerStartupEventListener
extends Object
implements HibernateEventListener<ServerStartedEvent>
Read Plan Particles information from Bandana on server startup.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<Class<? extends ServerStartedEvent>> List of specific event classes that this listener is interested in.voidhandleEvent(ServerStartedEvent event) On server start feed PlanParticleManager with the list of particles from Maven2 dependency provider Jobs, selected in TopLevelPlans.voidsetBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager) Deprecated.since 6.8 use constructor injection or annotation injectionvoidsetCachedPlanManager(CachedPlanManager cachedPlanManager) Deprecated.since 6.8 use constructor injection or annotation injectionvoidsetErrorHandler(ErrorHandler errorHandler) Deprecated.since 6.8 use constructor injection or annotation injectionvoidsetPlanParticleManager(PlanParticleManager planParticleManager) Deprecated.since 6.8 use constructor injection or annotation injection
-
Constructor Details
-
RestoreMaven2ParticlesOnServerStartupEventListener
public RestoreMaven2ParticlesOnServerStartupEventListener()
-
-
Method Details
-
getHandledEventClasses
Description copied from interface:BambooEventListenerList of specific event classes that this listener is interested in.- Specified by:
getHandledEventClassesin interfaceBambooEventListener<ServerStartedEvent>- Returns:
- the specific event classes handled by this listener
-
handleEvent
On server start feed PlanParticleManager with the list of particles from Maven2 dependency provider Jobs, selected in TopLevelPlans.- Specified by:
handleEventin interfaceBambooEventListener<ServerStartedEvent>- Parameters:
event- ServerStartedEvent
-
setBandanaManager
Deprecated.since 6.8 use constructor injection or annotation injection -
setCachedPlanManager
Deprecated.since 6.8 use constructor injection or annotation injection -
setPlanParticleManager
Deprecated.since 6.8 use constructor injection or annotation injection -
setErrorHandler
Deprecated.since 6.8 use constructor injection or annotation injection
-