use of org.jnosql.diana.api.column.ColumnConfigurationAsync in project jnosql-artemis by eclipse.
the class ColumnFamilyManagerFactoryProducer method gettColumnFamilyManagerAsyncFactory.
private <T extends ColumnFamilyManagerAsync> ColumnFamilyManagerAsyncFactory<T> gettColumnFamilyManagerAsyncFactory(InjectionPoint injectionPoint) {
Annotated annotated = injectionPoint.getAnnotated();
ConfigurationUnit annotation = getConfigurationUnit(injectionPoint, annotated).orElseThrow(() -> new IllegalStateException("The @ConfigurationUnit does not found"));
ConfigurationSettingsUnit unit = configurationReader.get().read(annotation, ColumnConfigurationAsync.class);
Class<ColumnConfigurationAsync> configurationClass = unit.<ColumnConfigurationAsync>getProvider().orElseThrow(() -> new IllegalStateException("The ColumnConfiguration provider is required in the configuration"));
ColumnConfigurationAsync columnConfiguration = reflections.newInstance(configurationClass);
return columnConfiguration.getAsync(unit.getSettings());
}
Aggregations