Skip to main content
summaryrefslogtreecommitdiffstats
blob: da446710aa54e714ab0d6f373eaabc522e715845 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*******************************************************************************
 * Copyright (c) 2005, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * IBM Corporation - initial API and implementation
 * yyyymmdd bug      Email and other contact information
 * -------- -------- -----------------------------------------------------------
 * 20060317   127456 cbrealey@ca.ibm.com - Chris Brealey
 * 20060620   147862 cbrealey@ca.ibm.com - Chris Brealey
 *******************************************************************************/

package org.eclipse.wst.ws.internal.wsfinder;

import java.util.Collections;
import java.util.List;

import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IProgressMonitor;

/**
 * @author joan
 * 
 * Implementation of IWebServiceLocator.  Extenders must implement the abstract method getWebServices().  
 * This class will be used to provide methods useful to locator implementers.  Extenders should register their
 * locator implementation with their plugin using the org.eclipse.wst.ws.locator extension point. 
 *
 */
public abstract class AbstractWebServiceLocator implements IWebServiceLocator {

	/**
	 * Creates a new instance of this class.
	 */
	public AbstractWebServiceLocator ()
	{
		super();
	}

	/**
	 * Returns a list of WebServiceClientInfo objects.
	 * Subclasses should override this method's
	 * default behaviour of returning an empty list.
	 * @param monitor A progress monitor,
	 * or null if progress monitoring is not desired.
	 * @return A non-null but possibly empty list of WebServiceClientInfo objects
	 */
	public List getWebServiceClients ( IProgressMonitor monitor )
	{
		return Collections.EMPTY_LIST;
	}

	/**
	 * Returns a list of WebServiceClientInfo objects.
	 * Subclasses should override this method's
	 * default behaviour of returning an empty list.
	 * @param projects One or more projects to which
	 * the search should be limited.
	 * @param monitor A progress monitor,
	 * or null if progress monitoring is not desired.
	 * @return A non-null but possibly empty list of WebServiceClientInfo objects
	 */
	public List getWebServiceClients ( IProject[] projects, IProgressMonitor monitor )
	{
		return Collections.EMPTY_LIST;
	}

	/**
	 * Returns a list of WebServiceInfo objects. 
	 * Subclasses should override this method's
	 * default behaviour of returning an empty list.
	 * @param monitor A progress monitor,
	 * or null if progress monitoring is not desired.
	 * @return A non-null but possibly empty list of WebServiceInfo objects
	 */
	public List getWebServices ( IProgressMonitor monitor )
	{
		return Collections.EMPTY_LIST; 
	}

	/**
	 * Returns a list of WebServiceInfo objects. 
	 * Subclasses should override this method's
	 * default behaviour of returning an empty list.
	 * @param projects One or more projects to which
	 * the search should be limited.
	 * @param monitor A progress monitor,
	 * or null if progress monitoring is not desired.
	 * @return A non-null but possibly empty list of WebServiceInfo objects
	 */
	public List getWebServices ( IProject[] projects, IProgressMonitor monitor )
	{
		return Collections.EMPTY_LIST; 
	}
}

Back to the top