Search in sources :

Example 6 with Configurer

use of org.jdbi.v3.sqlobject.config.Configurer in project jdbi by jdbi.

the class RegisterFieldMappersImpl method configureForType.

@Override
public void configureForType(ConfigRegistry registry, Annotation annotation, Class<?> sqlObjectType) {
    Configurer delegate = new RegisterFieldMapperImpl();
    RegisterFieldMappers registerFieldMappers = (RegisterFieldMappers) annotation;
    Stream.of(registerFieldMappers.value()).forEach(anno -> delegate.configureForType(registry, anno, sqlObjectType));
}
Also used : RegisterFieldMappers(org.jdbi.v3.sqlobject.config.RegisterFieldMappers) Configurer(org.jdbi.v3.sqlobject.config.Configurer)

Example 7 with Configurer

use of org.jdbi.v3.sqlobject.config.Configurer in project jdbi by jdbi.

the class RegisterObjectArgumentFactoriesImpl method configureForType.

@Override
public void configureForType(ConfigRegistry registry, Annotation annotation, Class<?> sqlObjectType) {
    Configurer delegate = new RegisterObjectArgumentFactoryImpl();
    RegisterObjectArgumentFactories registerObjectArgumentFactories = (RegisterObjectArgumentFactories) annotation;
    Stream.of(registerObjectArgumentFactories.value()).forEach(anno -> delegate.configureForType(registry, anno, sqlObjectType));
}
Also used : RegisterObjectArgumentFactories(org.jdbi.v3.sqlobject.config.RegisterObjectArgumentFactories) Configurer(org.jdbi.v3.sqlobject.config.Configurer)

Example 8 with Configurer

use of org.jdbi.v3.sqlobject.config.Configurer in project jdbi by jdbi.

the class RegisterRowMapperFactoriesImpl method configureForType.

@Override
public void configureForType(ConfigRegistry registry, Annotation annotation, Class<?> sqlObjectType) {
    Configurer delegate = new RegisterRowMapperFactoryImpl();
    RegisterRowMapperFactories registerRowMapperFactories = (RegisterRowMapperFactories) annotation;
    Stream.of(registerRowMapperFactories.value()).forEach(anno -> delegate.configureForType(registry, anno, sqlObjectType));
}
Also used : RegisterRowMapperFactories(org.jdbi.v3.sqlobject.config.RegisterRowMapperFactories) Configurer(org.jdbi.v3.sqlobject.config.Configurer)

Example 9 with Configurer

use of org.jdbi.v3.sqlobject.config.Configurer in project jdbi by jdbi.

the class RegisterArgumentFactoriesImpl method configureForType.

@Override
public void configureForType(ConfigRegistry registry, Annotation annotation, Class<?> sqlObjectType) {
    Configurer delegate = new RegisterArgumentFactoryImpl();
    RegisterArgumentFactories factories = (RegisterArgumentFactories) annotation;
    Stream.of(factories.value()).forEach(anno -> delegate.configureForType(registry, anno, sqlObjectType));
}
Also used : RegisterArgumentFactories(org.jdbi.v3.sqlobject.config.RegisterArgumentFactories) Configurer(org.jdbi.v3.sqlobject.config.Configurer)

Example 10 with Configurer

use of org.jdbi.v3.sqlobject.config.Configurer in project jdbi by jdbi.

the class RegisterBeanMappersImpl method configureForType.

@Override
public void configureForType(ConfigRegistry registry, Annotation annotation, Class<?> sqlObjectType) {
    Configurer delegate = new RegisterBeanMapperImpl();
    RegisterBeanMappers registerBeanMappers = (RegisterBeanMappers) annotation;
    Stream.of(registerBeanMappers.value()).forEach(anno -> delegate.configureForType(registry, anno, sqlObjectType));
}
Also used : RegisterBeanMappers(org.jdbi.v3.sqlobject.config.RegisterBeanMappers) Configurer(org.jdbi.v3.sqlobject.config.Configurer)

Aggregations

Configurer (org.jdbi.v3.sqlobject.config.Configurer)10 InvocationHandler (java.lang.reflect.InvocationHandler)2 Method (java.lang.reflect.Method)2 ConfigRegistry (org.jdbi.v3.core.config.ConfigRegistry)2 ExtensionMethod (org.jdbi.v3.core.extension.ExtensionMethod)2 Annotation (java.lang.annotation.Annotation)1 AnnotatedElement (java.lang.reflect.AnnotatedElement)1 Proxy (java.lang.reflect.Proxy)1 Arrays (java.util.Arrays)1 Collections (java.util.Collections)1 Collections.synchronizedMap (java.util.Collections.synchronizedMap)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 WeakHashMap (java.util.WeakHashMap)1 BiConsumer (java.util.function.BiConsumer)1 Stream (java.util.stream.Stream)1 ExtensionFactory (org.jdbi.v3.core.extension.ExtensionFactory)1 HandleSupplier (org.jdbi.v3.core.extension.HandleSupplier)1 ConfiguringAnnotation (org.jdbi.v3.sqlobject.config.ConfiguringAnnotation)1 RegisterArgumentFactories (org.jdbi.v3.sqlobject.config.RegisterArgumentFactories)1