View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/filestore/client/src/java/org/astrogrid/filestore/resolver/FileStoreDelegateResolver.java,v $</cvs:source>
3    * <cvs:author>$Author: jdt $</cvs:author>
4    * <cvs:date>$Date: 2004/11/25 00:19:21 $</cvs:date>
5    * <cvs:version>$Revision: 1.5 $</cvs:version>
6    *
7    * <cvs:log>
8    *   $Log: FileStoreDelegateResolver.java,v $
9    *   Revision 1.5  2004/11/25 00:19:21  jdt
10   *   Merge from dave-dev-200410061224-200411221626
11   *
12   *   Revision 1.4.14.1  2004/10/19 14:56:15  dave
13   *   Refactored config and resolver to enable multiple instances of mock implementation.
14   *   Required to implement handling of multiple FileStore(s) in FileManager.
15   *
16   * </cvs:log>
17   *
18   */
19  package org.astrogrid.filestore.resolver ;
20  
21  import java.net.URL ;
22  
23  import org.astrogrid.store.Ivorn ;
24  
25  import org.astrogrid.registry.client.query.RegistryService ;
26  
27  import org.astrogrid.filestore.common.FileStore ;
28  import org.astrogrid.filestore.common.ivorn.FileStoreIvornParser ;
29  import org.astrogrid.filestore.client.FileStoreDelegate ;
30  import org.astrogrid.filestore.client.FileStoreSoapDelegate ;
31  import org.astrogrid.filestore.client.FileStoreMockDelegate ;
32  import org.astrogrid.filestore.common.exception.FileStoreIdentifierException ;
33  
34  /***
35   * Public interface for a helper class to resolve an Ivron into a service delegate.
36   *
37   */
38  public interface FileStoreDelegateResolver
39      {
40  
41      /***
42       * Resolve an Ivorn into a delegate.
43       * @param ivorn An Ivorn containing a filestore identifier.
44       * @return A FileStoreDelegate for the service.
45       * @throws FileStoreIdentifierException If the identifier is not valid.
46       * @throws FileStoreResolverException If unable to resolve the identifier.
47       *
48       */
49      public FileStoreDelegate resolve(Ivorn ivorn)
50          throws FileStoreIdentifierException, FileStoreResolverException ;
51      }
52