Search in sources :

Example 1 with ReactiveKeyValueTemplateProducer

use of org.eclipse.jnosql.mapping.keyvalue.reactive.ReactiveKeyValueTemplateProducer in project jnosql-diana by eclipse.

the class ReactiveKeyValueManagerConverter method success.

@Override
protected ReactiveKeyValueTemplate success(String value) {
    Config config = BeanManagers.getInstance(Config.class);
    final KeyValueTemplate template = config.getValue(value, KeyValueTemplate.class);
    ReactiveKeyValueTemplateProducer producer = BeanManagers.getInstance(ReactiveKeyValueTemplateProducer.class);
    return producer.get(template);
}
Also used : Config(org.eclipse.microprofile.config.Config) ReactiveKeyValueTemplate(org.eclipse.jnosql.mapping.keyvalue.reactive.ReactiveKeyValueTemplate) KeyValueTemplate(jakarta.nosql.mapping.keyvalue.KeyValueTemplate) ReactiveKeyValueTemplateProducer(org.eclipse.jnosql.mapping.keyvalue.reactive.ReactiveKeyValueTemplateProducer)

Example 2 with ReactiveKeyValueTemplateProducer

use of org.eclipse.jnosql.mapping.keyvalue.reactive.ReactiveKeyValueTemplateProducer in project jnosql-diana by eclipse.

the class ReactiveTemplateBean method create.

@Override
public ReactiveKeyValueTemplate create(CreationalContext<ReactiveKeyValueTemplate> creationalContext) {
    ReactiveKeyValueTemplateProducer producer = getInstance(ReactiveKeyValueTemplateProducer.class);
    KeyValueTemplate template = getManager();
    return producer.get(template);
}
Also used : ReactiveKeyValueTemplate(org.eclipse.jnosql.mapping.keyvalue.reactive.ReactiveKeyValueTemplate) KeyValueTemplate(jakarta.nosql.mapping.keyvalue.KeyValueTemplate) ReactiveKeyValueTemplateProducer(org.eclipse.jnosql.mapping.keyvalue.reactive.ReactiveKeyValueTemplateProducer)

Aggregations

KeyValueTemplate (jakarta.nosql.mapping.keyvalue.KeyValueTemplate)2 ReactiveKeyValueTemplate (org.eclipse.jnosql.mapping.keyvalue.reactive.ReactiveKeyValueTemplate)2 ReactiveKeyValueTemplateProducer (org.eclipse.jnosql.mapping.keyvalue.reactive.ReactiveKeyValueTemplateProducer)2 Config (org.eclipse.microprofile.config.Config)1