类 MockInvoker<T>

  • 所有已实现的接口:
    Node, Invoker<T>

    public final class MockInvoker<T>
    extends 
    implements Invoker<T>
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void destroy()
      destroy.
      <T> getInterface()
      get service interface.
      static  mockService,  serviceType)  
      static  throwstr)  
      URL getUrl()
      get url.
      Result invoke​(Invocation invocation)
      invoke.
      boolean isAvailable()
      is available.
      static  mock)
      Normalize mock string: return => return null fail => default force => default fail:throw/return foo => throw/return foo force:throw/return foo => throw/return foo
      static  mock)  
      static  mock, [] returnTypes)  
      • 从类继承的方法 java.lang.

        , , , , , , , ,
    • 构造器详细资料

      • MockInvoker

        public MockInvoker​(URL url)
    • 方法详细资料

      • parseMockValue

        public static  parseMockValue​( mock)
                                     throws 
        抛出:
      • parseMockValue

        public static  parseMockValue​( mock,
                                            [] returnTypes)
                                     throws 
        抛出:
      • getThrowable

        public static  getThrowable​( throwstr)
      • getMockObject

        public static  getMockObject​( mockService,
                                            serviceType)
      • normalizeMock

        public static  normalizeMock​( mock)
        Normalize mock string:
        1. return => return null
        2. fail => default
        3. force => default
        4. fail:throw/return foo => throw/return foo
        5. force:throw/return foo => throw/return foo
        参数:
        mock - mock string
        返回:
        normalized mock string
      • getUrl

        public URL getUrl()
        从接口复制的说明: Node
        get url.
        指定者:
        getUrl 在接口中 Node
        返回:
        url.
      • isAvailable

        public boolean isAvailable()
        从接口复制的说明: Node
        is available.
        指定者:
        isAvailable 在接口中 Node
        返回:
        available.
      • destroy

        public void destroy()
        从接口复制的说明: Node
        destroy.
        指定者:
        destroy 在接口中 Node
      • getInterface

        public <T> getInterface()
        从接口复制的说明: Invoker
        get service interface.
        指定者:
        getInterface 在接口中 Invoker<T>
        返回:
        service interface.