public class ServiceFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ServiceFactory.ConverterProvider |
Modifier and Type | Field and Description |
---|---|
ApiConfig |
apiConfig |
ServiceFactory.ConverterProvider |
decoders |
ServiceFactory.ConverterProvider |
encoders |
Constructor and Description |
---|
ServiceFactory(IoTizeClient client) |
Modifier and Type | Method and Description |
---|---|
<T> ServiceFactory |
addConverter(java.lang.Class<T> clazz,
<any> bodyConverter) |
<T> T |
create(java.lang.Class<T> service) |
static ServiceFactory |
create(IoTizeClient client,
java.util.Map<java.lang.String,<any>> entries) |
IoTizeClient |
getLWM2MClient() |
<T> <any> |
requestBodyConverter(java.lang.String path,
java.lang.reflect.Type parameterType,
Body bodyAnnotation,
java.lang.annotation.Annotation[] annotations,
java.lang.annotation.Annotation[] methodAnnotations) |
<T> <any> |
responseBodyConverter(ApiConfig.ConfigEntry pathConfig,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations) |
public ServiceFactory.ConverterProvider decoders
public ServiceFactory.ConverterProvider encoders
public ApiConfig apiConfig
public static ServiceFactory create(IoTizeClient client, java.util.Map<java.lang.String,<any>> entries)
public <T> ServiceFactory addConverter(java.lang.Class<T> clazz, <any> bodyConverter)
@NonNull public IoTizeClient getLWM2MClient()
public <T> T create(java.lang.Class<T> service)
public <T> <any> requestBodyConverter(java.lang.String path, java.lang.reflect.Type parameterType, Body bodyAnnotation, java.lang.annotation.Annotation[] annotations, java.lang.annotation.Annotation[] methodAnnotations)
public <T> <any> responseBodyConverter(@Nullable ApiConfig.ConfigEntry pathConfig, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations)