use of org.jnosql.artemis.column.ColumnTemplateAsync in project jnosql-artemis by eclipse.
the class RepositoryAsyncColumnBean method create.
@Override
public RepositoryAsync create(CreationalContext<RepositoryAsync> creationalContext) {
ClassRepresentations classRepresentations = getInstance(ClassRepresentations.class);
ColumnTemplateAsync repository = provider.isEmpty() ? getInstance(ColumnTemplateAsync.class) : getInstance(ColumnTemplateAsync.class, provider);
Reflections reflections = getInstance(Reflections.class);
Converters converters = getInstance(Converters.class);
ColumnRepositoryAsyncProxy handler = new ColumnRepositoryAsyncProxy(repository, classRepresentations, type, reflections, converters);
return (RepositoryAsync) Proxy.newProxyInstance(type.getClassLoader(), new Class[] { type }, handler);
}
Aggregations