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