public class ServiceProviderImpl extends Object implements ServiceProviderInterface
Constructor and Description |
---|
ServiceProviderImpl() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Service service,
Context context)
执行服务
|
void |
execute(String serviceId,
Context context)
执行指定ID服务,并把服务结果放在环境当中
|
Service |
getService(String serviceId) |
ServiceRegistry |
getServiceRegistory()
返回服务注册表
|
ServiceRegistryItem |
getServiceRegistryItem(Service service) |
<T> void |
setConfig(T config)
注入参数
|
void |
setServiceRegistory(ServiceRegistry serviceRegistory)
设置服务注册表
|
void |
validateInputParameter(Service service,
Context Context)
验证输入参数
|
void |
validateOutputParameter(Service service,
Context context)
检查输出参数
|
public ServiceRegistry getServiceRegistory()
ServiceProviderInterface
getServiceRegistory
in interface ServiceProviderInterface
public void setServiceRegistory(ServiceRegistry serviceRegistory)
ServiceProviderInterface
setServiceRegistory
in interface ServiceProviderInterface
public void validateInputParameter(Service service, Context Context)
ServiceProviderInterface
validateInputParameter
in interface ServiceProviderInterface
public void validateOutputParameter(Service service, Context context)
ServiceProviderInterface
validateOutputParameter
in interface ServiceProviderInterface
public void execute(Service service, Context context)
ServiceProviderInterface
execute
in interface ServiceProviderInterface
public void execute(String serviceId, Context context)
ServiceProviderInterface
execute
in interface ServiceProviderInterface
public <T> void setConfig(T config)
ServiceProviderInterface
setConfig
in interface ServiceProviderInterface
public Service getService(String serviceId)
getService
in interface ServiceProviderInterface
public ServiceRegistryItem getServiceRegistryItem(Service service)
getServiceRegistryItem
in interface ServiceProviderInterface
Copyright © 2006–2018 TinyGroup. All rights reserved.