public static class ServiceInstanceContext.CurrentContext extends java.lang.Object implements ServiceInstanceContext
ServiceInstanceContext.CurrentContext, ServiceInstanceContext.ServiceInstanceContextChangedListenerCURRENT| 构造器和说明 |
|---|
CurrentContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(ServiceInstanceContext.ServiceInstanceContextChangedListener changedListener) |
java.lang.String |
getNamespace()
获取当前上下文的命名空间
|
ServiceInstance |
getServiceInstance() |
void |
removeListener(ServiceInstanceContext.ServiceInstanceContextChangedListener changedListener) |
void |
setServiceInstance(ServiceInstance serviceInstance) |
public java.lang.String getNamespace()
getNamespace 在接口中 me.ahoo.cosky.core.Namespacedpublic void setServiceInstance(ServiceInstance serviceInstance)
setServiceInstance 在接口中 ServiceInstanceContextpublic void addListener(ServiceInstanceContext.ServiceInstanceContextChangedListener changedListener)
addListener 在接口中 ServiceInstanceContextpublic void removeListener(ServiceInstanceContext.ServiceInstanceContextChangedListener changedListener)
removeListener 在接口中 ServiceInstanceContextpublic ServiceInstance getServiceInstance()
getServiceInstance 在接口中 ServiceInstanceContext