Class GuiceObjectMapperProvider
- java.lang.Object
-
- org.spongepowered.configurate.objectmapping.guice.GuiceObjectMapperProvider
-
@Singleton public final class GuiceObjectMapperProvider extends Object
A factory forObjectMapper
s that will inherit the injector from wherever it is provided.This class is intended to be constructed through Guice dependency injection.
- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectMapper.Factory
get()
Get the default factory, with guice support added.static FieldDiscoverer<?>
injectedObjectDiscoverer(com.google.inject.Injector injector)
Create a field discoverer that uses the provided injector.String
toString()
-
-
-
Method Detail
-
get
public ObjectMapper.Factory get()
Get the default factory, with guice support added.- Returns:
- the default guice factory
- Since:
- 4.0.0
-
injectedObjectDiscoverer
public static FieldDiscoverer<?> injectedObjectDiscoverer(com.google.inject.Injector injector)
Create a field discoverer that uses the provided injector.- Parameters:
injector
- injector to create instances with- Returns:
- new discoverer
- Since:
- 4.0.0
-
-