demo.org.powermock.examples.tutorial.partialmocking.service
Interface ProviderService

All Known Implementing Classes:
ProviderServiceImpl, ProviderServiceWithoutPowerMockImpl

public interface ProviderService

A simple interface that manages persons.


Method Summary
 Set<ServiceProducer> getAllServiceProviders()
          Get all service provider.
 ServiceProducer getServiceProvider(int id)
          Get a service provider.
 

Method Detail

getAllServiceProviders

Set<ServiceProducer> getAllServiceProviders()
Get all service provider.

Returns:
All service provider artifacts currently available or an empty set if no service providers are available.

getServiceProvider

ServiceProducer getServiceProvider(int id)
Get a service provider.

Parameters:
id - The id of the service provider to get.
Returns:
The service artifact that represents the service provider or null if no Service Producer was found with that id.


Copyright © 2007-2012. All Rights Reserved.