View Javadoc

1   package org.sonatype.aether;
2   
3   /*******************************************************************************
4    * Copyright (c) 2010-2011 Sonatype, Inc.
5    * All rights reserved. This program and the accompanying materials
6    * are made available under the terms of the Eclipse Public License v1.0
7    * which accompanies this distribution, and is available at
8    *   http://www.eclipse.org/legal/epl-v10.html
9    *******************************************************************************/
10  
11  import org.sonatype.aether.transfer.TransferListener;
12  
13  /**
14   * A listener being notified of events from the repository system. In general, the system sends events upon termination
15   * of an operation like {@link #artifactResolved(RepositoryEvent)} regardless whether it succeeded or failed so
16   * listeners need to inspect the event details carefully. Also, the listener may be called from an arbitrary thread.
17   * <em>Note:</em> Implementors are strongly advised to inherit from {@link AbstractRepositoryListener} instead of
18   * directly implementing this interface.
19   * 
20   * @author Benjamin Bentmann
21   * @see TransferListener
22   */
23  public interface RepositoryListener
24  {
25  
26      void artifactDescriptorInvalid( RepositoryEvent event );
27  
28      void artifactDescriptorMissing( RepositoryEvent event );
29  
30      void metadataInvalid( RepositoryEvent event );
31  
32      void artifactResolving( RepositoryEvent event );
33  
34      void artifactResolved( RepositoryEvent event );
35  
36      void metadataResolving( RepositoryEvent event );
37  
38      void metadataResolved( RepositoryEvent event );
39  
40      void artifactDownloading( RepositoryEvent event );
41  
42      void artifactDownloaded( RepositoryEvent event );
43  
44      void metadataDownloading( RepositoryEvent event );
45  
46      void metadataDownloaded( RepositoryEvent event );
47  
48      void artifactInstalling( RepositoryEvent event );
49  
50      void artifactInstalled( RepositoryEvent event );
51  
52      void metadataInstalling( RepositoryEvent event );
53  
54      void metadataInstalled( RepositoryEvent event );
55  
56      void artifactDeploying( RepositoryEvent event );
57  
58      void artifactDeployed( RepositoryEvent event );
59  
60      void metadataDeploying( RepositoryEvent event );
61  
62      void metadataDeployed( RepositoryEvent event );
63  
64  }