Class ObjectMapperModelIntrospector
java.lang.Object
dev.getelements.elements.rt.jackson.ObjectMapperModelIntrospector
- All Implemented Interfaces:
ModelIntrospector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapper
introspectClassForModel
(Class<?> cls, RemoteScope remoteScope) introspectClassForModelName
(Class<?> cls, RemoteScope remoteScope) Introspects the class for the model name, but does not generate the whole model.introspectClassForType
(Class<?> cls) Introspects the suppliedClass<?>
for the supplied model.introspectJavaTypeForType
(com.fasterxml.jackson.databind.JavaType javaType) introspectProperties
(Class<?> cls, RemoteScope remoteScope) void
setObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Constructor Details
-
ObjectMapperModelIntrospector
public ObjectMapperModelIntrospector()
-
-
Method Details
-
introspectClassForType
Description copied from interface:ModelIntrospector
Introspects the suppliedClass<?>
for the supplied model.- Specified by:
introspectClassForType
in interfaceModelIntrospector
- Parameters:
cls
- the class- Returns:
- the
Type
-
introspectJavaTypeForType
-
introspectClassForModelName
Description copied from interface:ModelIntrospector
Introspects the class for the model name, but does not generate the whole model.- Specified by:
introspectClassForModelName
in interfaceModelIntrospector
- Parameters:
cls
- theClass<?>
to introspectremoteScope
- the remote scope- Returns:
- the model name
-
introspectClassForModel
Description copied from interface:ModelIntrospector
- Specified by:
introspectClassForModel
in interfaceModelIntrospector
- Parameters:
cls
- theClass<?>
to introspectremoteScope
- the remote scope- Returns:
- the introspection result
-
introspectProperties
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setObjectMapper
@Inject public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-