Search in sources :

Example 1 with ColumnTemplateProducer

use of jakarta.nosql.mapping.column.ColumnTemplateProducer in project jnosql-diana by eclipse.

the class ColumnTemplateConverter method success.

@Override
public ColumnTemplate success(String value) {
    Config config = BeanManagers.getInstance(Config.class);
    final ColumnFamilyManager manager = config.getValue(value, ColumnFamilyManager.class);
    ColumnTemplateProducer producer = BeanManagers.getInstance(ColumnTemplateProducer.class);
    return producer.get(manager);
}
Also used : ColumnFamilyManager(jakarta.nosql.column.ColumnFamilyManager) Config(org.eclipse.microprofile.config.Config) ColumnTemplateProducer(jakarta.nosql.mapping.column.ColumnTemplateProducer)

Example 2 with ColumnTemplateProducer

use of jakarta.nosql.mapping.column.ColumnTemplateProducer in project jnosql-diana by eclipse.

the class ReactiveTemplateBean method create.

@Override
public ReactiveColumnTemplate create(CreationalContext<ReactiveColumnTemplate> context) {
    ColumnTemplateProducer producer = getInstance(ColumnTemplateProducer.class);
    ColumnFamilyManager manager = getManager();
    return producer.get(manager);
}
Also used : ColumnFamilyManager(jakarta.nosql.column.ColumnFamilyManager) ColumnTemplateProducer(jakarta.nosql.mapping.column.ColumnTemplateProducer)

Example 3 with ColumnTemplateProducer

use of jakarta.nosql.mapping.column.ColumnTemplateProducer in project jnosql-diana by eclipse.

the class TemplateBean method create.

@Override
public ColumnTemplate create(CreationalContext<ColumnTemplate> context) {
    ColumnTemplateProducer producer = getInstance(ColumnTemplateProducer.class);
    ColumnFamilyManager columnFamilyManager = getColumnFamilyManager();
    return producer.get(columnFamilyManager);
}
Also used : ColumnFamilyManager(jakarta.nosql.column.ColumnFamilyManager) ColumnTemplateProducer(jakarta.nosql.mapping.column.ColumnTemplateProducer)

Aggregations

ColumnFamilyManager (jakarta.nosql.column.ColumnFamilyManager)3 ColumnTemplateProducer (jakarta.nosql.mapping.column.ColumnTemplateProducer)3 Config (org.eclipse.microprofile.config.Config)1