/** * Get the factory instance for the operations. * * @param operationsMapping the reference to the template. * @param indexManager the reference to the {@link IndexManager}. * @return the factory instance. */ protected CouchbaseRepositoryFactory getFactoryInstance(final RepositoryOperationsMapping operationsMapping, IndexManager indexManager) { return new CouchbaseRepositoryFactory(operationsMapping, indexManager); }
/** * Get the factory instance for the operations. * * @param operationsMapping the reference to the template. * @param indexManager the reference to the {@link IndexManager}. * @return the factory instance. */ protected CouchbaseRepositoryFactory getFactoryInstance(final RepositoryOperationsMapping operationsMapping, IndexManager indexManager) { return new CouchbaseRepositoryFactory(operationsMapping, indexManager); }
@Override protected T create(CreationalContext<T> creationalContext, Class<T> repositoryType) { CouchbaseOperations couchbaseOperations = getDependencyInstance(couchbaseOperationsBean, CouchbaseOperations.class); RepositoryOperationsMapping couchbaseOperationsMapping = new RepositoryOperationsMapping(couchbaseOperations); IndexManager indexManager = new IndexManager(); return create(() -> new CouchbaseRepositoryFactory(couchbaseOperationsMapping, indexManager), repositoryType); }
@Override protected T create(CreationalContext<T> creationalContext, Class<T> repositoryType) { CouchbaseOperations couchbaseOperations = getDependencyInstance(couchbaseOperationsBean, CouchbaseOperations.class); RepositoryOperationsMapping couchbaseOperationsMapping = new RepositoryOperationsMapping(couchbaseOperations); IndexManager indexManager = new IndexManager(); return create(() -> new CouchbaseRepositoryFactory(couchbaseOperationsMapping, indexManager), repositoryType); }