org.hudsonci.maven.plugin.builder.internal
Class ArtifactRegistry

java.lang.Object
  extended by org.hudsonci.maven.plugin.builder.internal.ArtifactRegistry

public class ArtifactRegistry
extends Object

Stores records of ArtifactDTOs.

Since:
2.1.0
Author:
Jamie Whitehouse

Constructor Summary
ArtifactRegistry()
           
 
Method Summary
 ArtifactDTO get(MavenCoordinatesDTO coordinates)
          Returns the ArtifactDTO for the specified coordinates, or null if there is no registration.
 Collection<ArtifactDTO> getAll()
           
 void recordArtifact(ArtifactDTO artifact)
          Synchronizes recording of artifacts and updates to the attribute values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactRegistry

public ArtifactRegistry()
Method Detail

recordArtifact

public void recordArtifact(ArtifactDTO artifact)
Synchronizes recording of artifacts and updates to the attribute values. Non-null attributes will be overwritten; collection based attributes will have values added.


getAll

public Collection<ArtifactDTO> getAll()
Returns:
an immutable list of the ArtifactDTO within the registry

get

public ArtifactDTO get(MavenCoordinatesDTO coordinates)
Returns the ArtifactDTO for the specified coordinates, or null if there is no registration.



Copyright © 2004-2011 Hudson. All Rights Reserved.