View Javadoc

1   /*
2    * $Id: DelegateFactory.java,v 1.2 2004/07/01 11:07:09 nw Exp $
3    * 
4    * Created on 26-Nov-2003 by Paul Harrison (pah@jb.man.ac.uk)
5    *
6    * Copyright 2003 AstroGrid. All rights reserved.
7    *
8    * This software is published under the terms of the AstroGrid 
9    * Software License version 1.2, a copy of which has been included 
10   * with this distribution in the LICENSE.txt file.  
11   *
12   */ 
13  
14  package org.astrogrid.applications.delegate;
15  
16  import org.astrogrid.applications.delegate.impl.CommonExecutionConnectorDelegate;
17  
18  /***
19   * A simple factory for creating CommonExecutionConnector Client delegates.
20   * @author Paul Harrison (pah@jb.man.ac.uk)
21   * @version $Name:  $
22   * @since iteration4
23   */
24  public class DelegateFactory {
25     /***
26      * Create a CommonExecutionClientDelegate with the stated service endpoint
27      * @param serviceEndpoint
28      * @return
29      */
30     public static CommonExecutionConnectorClient createDelegate(String serviceEndpoint)
31     {
32        return CommonExecutionConnectorDelegate.buildDelegate(serviceEndpoint);
33        
34     }
35     
36     /***
37      * @return
38      */
39     public static CommonExecutionConnectorClient createDelegate()
40     {
41        throw new UnsupportedOperationException("not yet implemented - need to do registry discovery");
42     }
43  }