Class PojoTypes
- java.lang.Object
-
- org.jdbi.v3.core.mapper.reflect.internal.PojoTypes
-
- All Implemented Interfaces:
JdbiConfig<PojoTypes>
public class PojoTypes extends java.lang.Object implements JdbiConfig<PojoTypes>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Class<?>,PojoPropertiesFactory>factoriesprivate ConfigRegistryregistry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PojoTypescreateCopy()Returns a copy of this configuration object.java.util.Optional<PojoProperties<?>>findFor(java.lang.reflect.Type type)PojoTypesregister(java.lang.Class<?> key, PojoPropertiesFactory factory)voidsetRegistry(ConfigRegistry registry)The registry will inject itself into the configuration object.
-
-
-
Field Detail
-
factories
private final java.util.Map<java.lang.Class<?>,PojoPropertiesFactory> factories
-
registry
private ConfigRegistry registry
-
-
Constructor Detail
-
PojoTypes
public PojoTypes()
-
PojoTypes
private PojoTypes(PojoTypes other)
-
-
Method Detail
-
setRegistry
public void setRegistry(ConfigRegistry registry)
Description copied from interface:JdbiConfigThe registry will inject itself into the configuration object. This can be useful if you need to look up dependencies. You will get a new registry after being copied.- Specified by:
setRegistryin interfaceJdbiConfig<PojoTypes>- Parameters:
registry- the registry that owns this configuration object
-
register
public PojoTypes register(java.lang.Class<?> key, PojoPropertiesFactory factory)
-
findFor
public java.util.Optional<PojoProperties<?>> findFor(java.lang.reflect.Type type)
-
createCopy
public PojoTypes createCopy()
Description copied from interface:JdbiConfigReturns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopyin interfaceJdbiConfig<PojoTypes>- Returns:
- a copy of this configuration object.
-
-