com.atlassian.bamboo.plugins.maven.dependencies.events
Class RestoreMaven2ParticlesOnServerStartupEventListener

java.lang.Object
  extended by com.atlassian.bamboo.plugins.maven.dependencies.events.RestoreMaven2ParticlesOnServerStartupEventListener
All Implemented Interfaces:
HibernateEventListener, com.atlassian.event.EventListener

public class RestoreMaven2ParticlesOnServerStartupEventListener
extends java.lang.Object
implements HibernateEventListener

Read Plan Particles information from Bandana on server startup.


Constructor Summary
RestoreMaven2ParticlesOnServerStartupEventListener()
           
 
Method Summary
 java.lang.Class<? extends com.atlassian.event.Event>[] getHandledEventClasses()
           
 void handleEvent(com.atlassian.event.Event 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)
           
 void setCachedPlanManager(CachedPlanManager cachedPlanManager)
           
 void setErrorHandler(ErrorHandler errorHandler)
           
 void setPlanParticleManager(PlanParticleManager planParticleManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestoreMaven2ParticlesOnServerStartupEventListener

public RestoreMaven2ParticlesOnServerStartupEventListener()
Method Detail

getHandledEventClasses

public java.lang.Class<? extends com.atlassian.event.Event>[] getHandledEventClasses()
Specified by:
getHandledEventClasses in interface HibernateEventListener
Specified by:
getHandledEventClasses in interface com.atlassian.event.EventListener
Returns:
Array of Class objects this listener handles

handleEvent

public void handleEvent(com.atlassian.event.Event event)
On server start feed PlanParticleManager with the list of particles from Maven2 dependency provider Jobs, selected in TopLevelPlans.

Specified by:
handleEvent in interface HibernateEventListener
Specified by:
handleEvent in interface com.atlassian.event.EventListener
Parameters:
event - ServerStartedEvent

setBandanaManager

public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)

setCachedPlanManager

public void setCachedPlanManager(CachedPlanManager cachedPlanManager)

setPlanParticleManager

public void setPlanParticleManager(PlanParticleManager planParticleManager)

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.