public abstract class DecoratorApiProvider extends Object implements ApiProvider
| Modifier and Type | Field and Description |
|---|---|
protected ApiProvider |
decoratedProvider |
| Constructor and Description |
|---|
DecoratorApiProvider(ApiProvider decoratedProvider)
Creates
ApiProvider Decorator. |
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(String serviceId,
String operationId,
DataValue input,
ExecutionContext ctx,
AsyncHandle<MethodResult> asyncHandle)
Invokes the specified operation using the provided input and
execution context.
|
protected final ApiProvider decoratedProvider
public DecoratorApiProvider(ApiProvider decoratedProvider)
ApiProvider Decorator.decoratedProvider - provider to be decorated; must not be
nullpublic void invoke(String serviceId, String operationId, DataValue input, ExecutionContext ctx, AsyncHandle<MethodResult> asyncHandle)
ApiProviderTarget method is identified by serviceId and
operationId.
invoke in interface ApiProviderserviceId - identifier of the target serviceoperationId - identifier of the target operationinput - operation input parametersctx - execution context for the invocationasyncHandle - handle used to asynchronously "return" the result
or error of the invocationCopyright © 2023. All rights reserved.