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.void
handleEvent
(ServerStartedEvent event) On server start feed PlanParticleManager with the list of particles from Maven2 dependency provider Jobs, selected in TopLevelPlans.void
setBandanaManager
(com.atlassian.bandana.BandanaManager bandanaManager) Deprecated.since 6.8 use constructor injection or annotation injectionvoid
setCachedPlanManager
(CachedPlanManager cachedPlanManager) Deprecated.since 6.8 use constructor injection or annotation injectionvoid
setErrorHandler
(ErrorHandler errorHandler) Deprecated.since 6.8 use constructor injection or annotation injectionvoid
setPlanParticleManager
(PlanParticleManager planParticleManager) Deprecated.since 6.8 use constructor injection or annotation injection
-
Constructor Details
-
RestoreMaven2ParticlesOnServerStartupEventListener
public RestoreMaven2ParticlesOnServerStartupEventListener()
-
-
Method Details
-
getHandledEventClasses
Description copied from interface:BambooEventListener
List of specific event classes that this listener is interested in.- Specified by:
getHandledEventClasses
in 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:
handleEvent
in 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
-