public final class ITApiFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends ITApi> |
getApi(Class<? extends ITApi> apiType,
Object context)
Deprecated.
(2.4.0, technically it returns a service and not an API will be removed after 2.24.0, use @ see com.sap.it.api.ITApiFactory # getService () instead)
|
static <T extends ITApi> |
getService(Class<? extends ITApi> apiType,
Object context)
Returns an instance of the public API implementation described via the apiType.
|
@Deprecated public static <T extends ITApi> T getApi(Class<? extends ITApi> apiType, Object context) throws InvalidContextException
T - - the service which implements or extends ITApiapiType - class of the requested API interfacecontext - represents context(mapping, camel etc.) for the determination of the API.
Can be null if not required for the particular APIInvalidContextException - - if there are no handler for the apiType foundpublic static <T extends ITApi> T getService(Class<? extends ITApi> apiType, Object context) throws InvalidContextException
T - - the service which implements or extends ITApiapiType - class of the requested API interfacecontext - represents context(mapping, camel etc.) for the determination of the API.
Can be null if not required for the particular APIInvalidContextException - - if there are no handler for the apiType foundCopyright © 2020 SAP. All rights reserved.