use of org.jnosql.artemis.reflection.ClassRepresentations 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);
}
use of org.jnosql.artemis.reflection.ClassRepresentations 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);
}
use of org.jnosql.artemis.reflection.ClassRepresentations in project jnosql-artemis by eclipse.
the class RepositoryDocumentBean method create.
@Override
public Repository create(CreationalContext<Repository> creationalContext) {
ClassRepresentations classRepresentations = getInstance(ClassRepresentations.class);
DocumentTemplate repository = provider.isEmpty() ? getInstance(DocumentTemplate.class) : getInstance(DocumentTemplate.class, provider);
Reflections reflections = getInstance(Reflections.class);
Converters converters = getInstance(Converters.class);
DocumentRepositoryProxy handler = new DocumentRepositoryProxy(repository, classRepresentations, type, reflections, converters);
return (Repository) Proxy.newProxyInstance(type.getClassLoader(), new Class[] { type }, handler);
}
use of org.jnosql.artemis.reflection.ClassRepresentations 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