KickJava   Java API By Example, From Geeks To Geeks.

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


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.DependencyResolver;
11 import fr.jayasoft.ivy.Ivy;
12
13 public class NeedArtifactEvent extends DownloadEvent {
14     public static final String JavaDoc NAME = "need-artifact";
15     
16     private DependencyResolver _resolver;
17
18     public NeedArtifactEvent(Ivy source, DependencyResolver resolver, Artifact artifact) {
19         super(source, NAME, artifact);
20         _resolver = resolver;
21         addAttribute("resolver", _resolver.getName());
22     }
23
24     public DependencyResolver getResolver() {
25         return _resolver;
26     }
27
28 }
29
Popular Tags