Package jade.core
Interface ServiceFinder
-
- All Known Implementing Classes:
ServiceManagerImpl
public interface ServiceFinderTheServiceFinderinterface serves as an access point for kernel-level service discovery. From a service finder object one can look up a given service by name, or can directly ask for a slice of the given service.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
- See Also:
Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAIN_SLICEstatic StringTHIS_SLICE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Service.Slice[]findAllSlices(String serviceKey)Retrieves all the slices of a service currently active on this platform.ServicefindService(String key)Looks up a platform service by name.Service.SlicefindSlice(String serviceKey, String sliceKey)Looks up a specific service slice by name.
-
-
-
Field Detail
-
MAIN_SLICE
static final String MAIN_SLICE
- See Also:
- Constant Field Values
-
THIS_SLICE
static final String THIS_SLICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
findService
Service findService(String key) throws IMTPException, ServiceException
Looks up a platform service by name.- Parameters:
key- The name of the service. Concrete syntax for service names is left up to concrete services.- Throws:
IMTPExceptionServiceException
-
findSlice
Service.Slice findSlice(String serviceKey, String sliceKey) throws IMTPException, ServiceException
Looks up a specific service slice by name.- Parameters:
key- A structured name identifying both a service and a slice within it. Concrete syntax for service names is left up to concrete services.- Throws:
IMTPExceptionServiceException
-
findAllSlices
Service.Slice[] findAllSlices(String serviceKey) throws IMTPException, ServiceException
Retrieves all the slices of a service currently active on this platform.- Parameters:
serviceKey- The name of the service. Concrete syntax for service names is left up to concrete services.- Returns:
- An array of
Service.Sliceobjects, containing all the slices of the requested service. - Throws:
IMTPExceptionServiceException
-
-