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.ObjectMapperintrospectClassForModel(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) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Constructor Details
-
ObjectMapperModelIntrospector
public ObjectMapperModelIntrospector()
-
-
Method Details
-
introspectClassForType
Description copied from interface:ModelIntrospectorIntrospects the suppliedClass<?>for the supplied model.- Specified by:
introspectClassForTypein interfaceModelIntrospector- Parameters:
cls- the class- Returns:
- the
Type
-
introspectJavaTypeForType
-
introspectClassForModelName
Description copied from interface:ModelIntrospectorIntrospects the class for the model name, but does not generate the whole model.- Specified by:
introspectClassForModelNamein interfaceModelIntrospector- Parameters:
cls- theClass<?>to introspectremoteScope- the remote scope- Returns:
- the model name
-
introspectClassForModel
Description copied from interface:ModelIntrospector- Specified by:
introspectClassForModelin 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)
-