Skip to content

Commit

Permalink
update common lib version, add applicationscope annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
akoserwal committed Sep 26, 2024
1 parent 805b017 commit 7adee05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
<dependency>
<groupId>org.project-kessel</groupId>
<artifactId>common-client-java</artifactId>
<version>0.1</version>
<version>0.2</version>
</dependency>
<dependency>
<groupId>build.buf</groupId>
<artifactId>protovalidate</artifactId>
<version>0.3.2</version>
<version>0.2.1</version>
</dependency>
<dependency>
<groupId>jakarta.enterprise</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,37 @@ InventoryGrpcClientsManager getManager(Config config) {
}

@Produces
@ApplicationScoped
public RhelHostClient getHostClient(InventoryGrpcClientsManager manager) {
return manager.getHostClient();
}

@Produces
@ApplicationScoped
public InventoryHealthClient getHealthClient(InventoryGrpcClientsManager manager) {
return manager.getHealthClient();
}

@Produces
@ApplicationScoped
public K8sClustersClient getK8sClustersClient(InventoryGrpcClientsManager manager) {
return manager.getK8sClustersClient();
}

@Produces
@ApplicationScoped
public K8sPolicyClient getKesselK8sPolicyClient(InventoryGrpcClientsManager manager) {
return manager.getKesselK8sPolicyClient();
}

@Produces
@ApplicationScoped
public K8SPolicyIsPropagatedToK8SClusterClient getKesselK8SPolicyIsPropagatedToK8SClusterClient(InventoryGrpcClientsManager manager) {
return manager.getKesselK8SPolicyIsPropagatedToK8SClusterClient();
}

@Produces
@ApplicationScoped
public NotificationsIntegrationClient getNotificationsIntegrationClient(InventoryGrpcClientsManager manager) {
return manager.getNotificationsIntegrationClient();
}
Expand Down

0 comments on commit 7adee05

Please sign in to comment.