public class JsonviewFactory extends Object
| 构造器和说明 |
|---|
JsonviewFactory(JsonviewConfiguration jsonviewConfiguration)
constructor for jsonviewConfiguration
|
JsonviewFactory(JsonviewConfiguration jsonviewConfiguration,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
constructor for jsonviewConfiguration and custom objectMapper
|
JsonviewFactory(Set<String> configs)
constructor for string set
|
JsonviewFactory(String... configs)
constructor for string array
|
| 限定符和类型 | 方法和说明 |
|---|---|
JsonCreator |
getJsonCreator()
Create a json creator, use the default objectMapper object
|
JsonCreator |
getJsonCreator(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a json creator, with the incoming objectMapper object
|
JsonviewConfiguration |
getJsonviewConfiguration()
get jsonviewConfiguration
|
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
get objectMapper
|
public JsonviewFactory(String... configs)
configs - configuration filename arraypublic JsonviewFactory(Set<String> configs)
configs - configuration filename setpublic JsonviewFactory(JsonviewConfiguration jsonviewConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
jsonviewConfiguration - jsonviewConfigurationobjectMapper - objectMapperpublic JsonviewFactory(JsonviewConfiguration jsonviewConfiguration)
jsonviewConfiguration - jsonviewConfigurationpublic JsonCreator getJsonCreator()
public JsonCreator getJsonCreator(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper - incoming objectMapper objectpublic JsonviewConfiguration getJsonviewConfiguration()
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2016. All rights reserved.