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