use of org.jnosql.artemis.key.KeyValueTemplate in project jnosql-artemis by eclipse.
the class KeyValueRepositoryBean method create.
@Override
public Repository create(CreationalContext<Repository> creationalContext) {
KeyValueTemplate repository = provider.isEmpty() ? getInstance(KeyValueTemplate.class) : getInstance(KeyValueTemplate.class, provider);
KeyValueRepositoryProxy handler = new KeyValueRepositoryProxy(type, repository);
return (Repository) Proxy.newProxyInstance(type.getClassLoader(), new Class[] { type }, handler);
}
Aggregations