getProcessor

open fun <Interface> getProcessor(interfaceClass: Class<Interface>, processorLPFCPURI: String): Interface

Creates a proxy instance of the specified interface that forwards method calls to the provided processor LPFCP URI.

Return

A proxy instance of the specified interface.

Parameters

<Interface>

Interface of the processor

interfaceClass

Interface class of the processor

processorLPFCPURI

A string representing the processor LPFCP endpoint URI.


open fun <Interface> getProcessor(interfaceClass: Class<Interface>, processorLPFCP: URI): Interface

Creates a proxy instance of the specified interface that forwards method calls to the provided processor LPFCP URI.

Return

A proxy instance of the specified interface.

Parameters

<Interface>

Interface of the processor

interfaceClass

Interface class of the processor

processorLPFCP

A URI representing the processor LPFCP endpoint.


open fun <Interface> getProcessor(interfaceClass: Class<Interface>, processorLPFCP: (JSONObject, Type) -> Any): Interface

Creates a proxy instance of the specified interface that forwards method calls to the provided processor function.

Return

A proxy instance of the specified interface.

Parameters

<Interface>

Interface of the processor

interfaceClass

Interface class of the processor

processorLPFCP

A function that takes: - `JSONObject` - function call request in LPFCP format; - `Type` - type of value that the called function must return. [processorLPFCP] returns an `Any?` - value from the invoked function.