KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > event > download > DownloadEvent


1 /*
2  * This file is subject to the licence found in LICENCE.TXT in the root directory of the project.
3  * Copyright Jayasoft 2005 - All rights reserved
4  *
5  * #SNAPSHOT#
6  */

7 package fr.jayasoft.ivy.event.download;
8
9 import fr.jayasoft.ivy.Artifact;
10 import fr.jayasoft.ivy.Ivy;
11 import fr.jayasoft.ivy.event.IvyEvent;
12
13 public abstract class DownloadEvent extends IvyEvent {
14     private Artifact _artifact;
15
16     public DownloadEvent(Ivy source, String JavaDoc name, Artifact artifact) {
17         super(source, name);
18         _artifact = artifact;
19         addArtifactAttributes(_artifact);
20     }
21
22     protected void addArtifactAttributes(Artifact artifact) {
23         addMridAttributes(artifact.getModuleRevisionId());
24         addAttributes(artifact.getAttributes());
25     }
26
27     public Artifact getArtifact() {
28         return _artifact;
29     }
30     
31     
32 }
33
Popular Tags