Skip to content

Commit

Permalink
chore: upgrade jnosql.version to 1.0.1
Browse files Browse the repository at this point in the history
Signed-off-by: Maximillian Arruda <dearrudam@gmail.com>
  • Loading branch information
dearrudam authored and amoscatelli committed Aug 16, 2023
1 parent a96920a commit 2d82934
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
package org.eclipse.jnosql.databases.cassandra.communication;

import java.util.concurrent.Executor;

import org.eclipse.jnosql.communication.column.ColumnManagerFactory;

import com.datastax.oss.driver.api.core.CqlSession;

public class QuarkusCassandraColumnManagerFactory implements ColumnManagerFactory {

private final CqlSession cqlSession;
private final Executor executor;

public QuarkusCassandraColumnManagerFactory(
CqlSession cqlSession,
Executor executor) {
CqlSession cqlSession) {
this.cqlSession = cqlSession;
this.executor = executor;
}

@Override
Expand All @@ -27,7 +22,6 @@ public void close() {
public CassandraColumnManager apply(String keyspace) {
return new DefaultCassandraColumnManager(
cqlSession,
executor,
keyspace);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.eclipse.jnosql.communication.Settings;
import org.eclipse.jnosql.communication.column.ColumnConfiguration;
import org.eclipse.jnosql.communication.column.ColumnManagerFactory;
import org.eclipse.microprofile.context.ManagedExecutor;

import com.datastax.oss.quarkus.runtime.api.session.QuarkusCqlSession;

Expand All @@ -16,14 +15,10 @@ public class QuarkusCassandraConfiguration implements ColumnConfiguration {
@Inject
protected QuarkusCqlSession quarkusCqlSession;

@Inject
protected ManagedExecutor managedExecutor;

@Override
public ColumnManagerFactory apply(Settings settings) throws NullPointerException {
return new QuarkusCassandraColumnManagerFactory(
quarkusCqlSession,
managedExecutor);
quarkusCqlSession);
}

}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<cassandra-quarkus-bom.version>1.2.0</cassandra-quarkus-bom.version>
<quarkus-hazelcast-client-bom.version>4.0.0</quarkus-hazelcast-client-bom.version>
<camel-quarkus-solr-parent.version>3.0.0-M1</camel-quarkus-solr-parent.version>
<jnosql.version>1.0.0</jnosql.version>
<jnosql.version>1.0.1</jnosql.version>
</properties>
<dependencyManagement>
<dependencies>
Expand Down

0 comments on commit 2d82934

Please sign in to comment.