use of org.eclipse.jnosql.mapping.column.reactive.ReactiveColumnTemplateProducer in project jnosql-diana by eclipse.
the class ReactiveColumnManagerConverter method success.
@Override
protected ReactiveColumnTemplate success(String value) {
Config config = BeanManagers.getInstance(Config.class);
final ColumnTemplate template = config.getValue(value, ColumnTemplate.class);
ReactiveColumnTemplateProducer producer = BeanManagers.getInstance(ReactiveColumnTemplateProducer.class);
return producer.get(template);
}
use of org.eclipse.jnosql.mapping.column.reactive.ReactiveColumnTemplateProducer in project jnosql-diana by eclipse.
the class ReactiveRepositoryColumnBean method create.
@Override
public ReactiveRepository<?, ?> create(CreationalContext<ReactiveRepository<?, ?>> context) {
ClassMappings classMappings = getInstance(ClassMappings.class);
ColumnTemplate template = provider.isEmpty() ? getInstance(ColumnTemplate.class) : getInstance(ColumnTemplate.class, DatabaseQualifier.ofDocument(provider));
ReactiveColumnTemplateProducer reactiveProducer = getInstance(ReactiveColumnTemplateProducer.class);
final ReactiveColumnTemplate reactiveTemplate = reactiveProducer.get(template);
Converters converters = getInstance(Converters.class);
ReactiveColumnRepositoryProxy<?> handler = new ReactiveColumnRepositoryProxy<>(reactiveTemplate, template, converters, classMappings, type);
return (ReactiveRepository<?, ?>) Proxy.newProxyInstance(type.getClassLoader(), new Class[] { type }, handler);
}
Aggregations