com.cafesoft.core.service
Interface ServiceFinder

All Known Subinterfaces:
CamsClient
All Known Implementing Classes:
StandardServiceFinder

public interface ServiceFinder

Defines an interface for finding Services.

Since:
4/15/02

Method Summary
 Service[] find(Class type)
          Lookup Services by type.
 Service find(String id)
          Lookup a Service by unique identifier.
 Service find(String id, Class type)
          Find a Service by unique identifier and type.
 

Method Detail

find

public Service[] find(Class type)
               throws ServiceException
Lookup Services by type.

Parameters:
type - the Service Class.
Returns:
an array of Service instances implemented by the specified type
Throws:
ServiceException - if no service with the specified type is registered

find

public Service find(String id)
             throws ServiceException
Lookup a Service by unique identifier.

Parameters:
id - the Service identifier
Returns:
the Service with the specified identifier
Throws:
ServiceException - if no service with the specified identifier is registered

find

public Service find(String id,
                    Class type)
             throws ServiceException
Find a Service by unique identifier and type.

Parameters:
id - the Service identifier
type - the Service type
Returns:
the Service with the specified identifier and type
Throws:
ServiceException - if no service with the specified identifier and type is registered.


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.