org.hudsonci.maven.plugin.dependencymonitor.internal
Class DependencyMonitorImpl

java.lang.Object
  extended by org.hudsonci.maven.plugin.dependencymonitor.internal.DependencyMonitorImpl
All Implemented Interfaces:
DependencyMonitor

@Singleton
public class DependencyMonitorImpl
extends Object
implements DependencyMonitor

Default implementation of DependencyMonitor. No specific handling of multi-configuration projects is done here.

Since:
2.1.0
Author:
Jason Dillon

Constructor Summary
DependencyMonitorImpl(ProjectArtifactCache projectArtifactCache, DependencyGraphService dependencyGraphService)
           
 
Method Summary
 void buildGraph(AbstractProject project, DependencyGraph graph)
          Build the dependency graph for projects that depend on the given project.
 void purge(AbstractProject project)
          Purge subscription details as well as any cached artifact details for the given project.
 void subscribe(AbstractProject project)
          Subscribe a project to receive notifications when one of its dependencies has changed.
 void unsubscribe(AbstractProject project)
          Unsubscribe a project from receiving notifications about dependency changes.
 void update(AbstractBuild build, TaskListener listener)
          Update the artifact details for the given builds project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyMonitorImpl

@Inject
public DependencyMonitorImpl(ProjectArtifactCache projectArtifactCache,
                                    DependencyGraphService dependencyGraphService)
Method Detail

subscribe

public void subscribe(AbstractProject project)
Description copied from interface: DependencyMonitor
Subscribe a project to receive notifications when one of its dependencies has changed.

Specified by:
subscribe in interface DependencyMonitor

unsubscribe

public void unsubscribe(AbstractProject project)
Description copied from interface: DependencyMonitor
Unsubscribe a project from receiving notifications about dependency changes.

Specified by:
unsubscribe in interface DependencyMonitor

purge

public void purge(AbstractProject project)
Description copied from interface: DependencyMonitor
Purge subscription details as well as any cached artifact details for the given project.

Specified by:
purge in interface DependencyMonitor

update

public void update(AbstractBuild build,
                   TaskListener listener)
Description copied from interface: DependencyMonitor
Update the artifact details for the given builds project.

Specified by:
update in interface DependencyMonitor

buildGraph

public void buildGraph(AbstractProject project,
                       DependencyGraph graph)
Build the dependency graph for projects that depend on the given project. This is invoked by the DependencyNotifier delegating its DependecyDeclarer behavior.

Specified by:
buildGraph in interface DependencyMonitor


Copyright © 2004-2011 Hudson. All Rights Reserved.