类 MockInvoker<T>

    • 构造器详细资料

      • MockInvoker

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

      • getMockObject

        public static Object getMockObject​(String mockService,
                                           Class serviceType)
      • normalizeMock

        public static String normalizeMock​(String 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 Class<T> getInterface()
        从接口复制的说明: Invoker
        get service interface.
        指定者:
        getInterface 在接口中 Invoker<T>
        返回:
        service interface.