public interface ServiceProviderInterface
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 serviceRegistry)
设置服务注册表
|
void |
validateInputParameter(Service service,
Context context)
验证输入参数
|
void |
validateOutputParameter(Service service,
Context context)
检查输出参数
|
ServiceRegistry getServiceRegistory()
void setServiceRegistory(ServiceRegistry serviceRegistry)
serviceRegistry
- void validateInputParameter(Service service, Context context)
service
- ServiceNotExistException
void validateOutputParameter(Service service, Context context)
service
- void execute(Service service, Context context)
service
- ServiceExecuteException
void execute(String serviceId, Context context)
serviceId
- context
- <T> void setConfig(T config)
config
- ServiceRegistryItem getServiceRegistryItem(Service service)
Copyright © 2006–2018 TinyGroup. All rights reserved.