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()
ServiceProviderInterfacegetServiceRegistory in interface ServiceProviderInterfacepublic void setServiceRegistory(ServiceRegistry serviceRegistory)
ServiceProviderInterfacesetServiceRegistory in interface ServiceProviderInterfacepublic void validateInputParameter(Service service, Context Context)
ServiceProviderInterfacevalidateInputParameter in interface ServiceProviderInterfacepublic void validateOutputParameter(Service service, Context context)
ServiceProviderInterfacevalidateOutputParameter in interface ServiceProviderInterfacepublic void execute(Service service, Context context)
ServiceProviderInterfaceexecute in interface ServiceProviderInterfacepublic void execute(String serviceId, Context context)
ServiceProviderInterfaceexecute in interface ServiceProviderInterfacepublic <T> void setConfig(T config)
ServiceProviderInterfacesetConfig in interface ServiceProviderInterfacepublic Service getService(String serviceId)
getService in interface ServiceProviderInterfacepublic ServiceRegistryItem getServiceRegistryItem(Service service)
getServiceRegistryItem in interface ServiceProviderInterfaceCopyright © 2006–2018 TinyGroup. All rights reserved.