接口 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

      T build(C consumer, P provider)
      build the context for Selector.select(Object). The user must provide consumer and provider. we provide CmdbContext for user default who want to use the Instance'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.