接口 SelectorContextBuilder<T,C,P>
public interface SelectorContextBuilder<T,C,P>
The
SelectorContextBuilder mainly for provide the context for Selector.select(Object).
It provides build(Object, Object) method for build context. And also provide getContextType() for get the contextType.- 作者:
- chenglu
-
方法概要
修饰符和类型方法说明build the context forSelector.select(Object).the contextType. we provide the CMDB context type default.
-
方法详细资料
-
build
build the context forSelector.select(Object). The user must provide consumer and provider. we provideCmdbContextfor user default who want to use theInstance's CMDB info.- 参数:
consumer- consumer who launch the select.provider- the provides who are selected by consumer.- 返回:
- selectorContext use by
Selector.select(Object).
-
getContextType
String getContextType()the contextType. we provide the CMDB context type default.- 返回:
- the context type.
-