@Singleton public final class GuiceObjectMapperFactory extends Object implements ObjectMapperFactory
ObjectMapper
s that will inherit the injector from wherever it is provided. This class is
intended to be constructed through Guice dependency injection.Modifier | Constructor and Description |
---|---|
protected |
GuiceObjectMapperFactory(com.google.inject.Injector baseInjector) |
@Inject protected GuiceObjectMapperFactory(com.google.inject.Injector baseInjector)
public <T> ObjectMapper<T> getMapper(Class<T> type) throws ObjectMappingException
getMapper
in interface ObjectMapperFactory
ObjectMappingException
Copyright © 2014–2017. All rights reserved.