Interface IServiceMediator
public interface IServiceMediator
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddService(String serviceName, Object serviceInstance) Add a service to the ServiceMediator.<T> TgetService(Class<T> serviceClass, String serviceName) Gets a service from the ServiceMediator
-
Method Details
-
addService
Add a service to the ServiceMediator.- Parameters:
serviceName- The ServiceNameserviceInstance- The ServiceInstance
-
getService
Gets a service from the ServiceMediator- Type Parameters:
T- The type of the Service- Parameters:
serviceClass- The ServiceClass you expectserviceName- The ServiceName- Returns:
- The ServiceInstance
-