Package org.bonitasoft.web.client.feign
Class CachingApiProvider
- java.lang.Object
-
- org.bonitasoft.web.client.feign.CachingApiProvider
-
- All Implemented Interfaces:
ApiProvider
public class CachingApiProvider extends Object implements ApiProvider
-
-
Constructor Summary
Constructors Constructor Description CachingApiProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ApiClient.Api>
Tget(Class<T> apiClass)Return the underlying raw http client API.
-
-
-
Method Detail
-
get
public <T extends ApiClient.Api> T get(Class<T> apiClass)
Description copied from interface:ApiProviderReturn the underlying raw http client API.
Beware that raw API access directly map to http request !!
You won't benefit from bonita client facilities ( ie. request and payload validation, ...) and that your code will be highly coupled to the underlying client technology !
This access is provided to avoid people being blocked by the current limited Bonita client implementation. This may be removed in the future.
- Specified by:
getin interfaceApiProvider- Type Parameters:
T- the specific API type- Parameters:
apiClass- the class of the requested API instance type- Returns:
- an API instance of type T
-
-