Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakky54 authored Jul 26, 2023
2 parents aba60a7 + 8f0e94e commit 2039e0a
Show file tree
Hide file tree
Showing 25 changed files with 51 additions and 307 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package io.quarkus.infinispan.client.deployment.devconsole;
package io.quarkus.infinispan.client.deployment.devui;

import org.infinispan.commons.util.Version;

import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.arc.processor.BuiltinScope;
import io.quarkus.deployment.IsDevelopment;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.devui.spi.JsonRPCProvidersBuildItem;
import io.quarkus.devui.spi.page.CardPageBuildItem;
import io.quarkus.devui.spi.page.Page;
import io.quarkus.devui.spi.page.PageBuilder;
import io.quarkus.infinispan.client.runtime.devconsole.InfinispanJsonRPCService;
import io.quarkus.infinispan.client.runtime.devui.InfinispanClientsContainer;
import io.quarkus.infinispan.client.runtime.devui.InfinispanJsonRPCService;

public class InfinispanDevUiProcessor {
public class InfinispanDevUIProcessor {

@BuildStep(onlyIf = IsDevelopment.class)
public CardPageBuildItem infinispanServer() {
Expand Down Expand Up @@ -45,4 +47,9 @@ public CardPageBuildItem infinispanServer() {
public JsonRPCProvidersBuildItem createJsonRPCService() {
return new JsonRPCProvidersBuildItem(InfinispanJsonRPCService.class, BuiltinScope.SINGLETON.getName());
}

@BuildStep(onlyIf = IsDevelopment.class)
public AdditionalBeanBuildItem beans() {
return AdditionalBeanBuildItem.unremovableOf(InfinispanClientsContainer.class);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.infinispan.client.runtime.devconsole;
package io.quarkus.infinispan.client.runtime.devui;

import java.lang.annotation.Annotation;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.infinispan.client.runtime.devconsole;
package io.quarkus.infinispan.client.runtime.devui;

import io.quarkus.arc.Arc;
import io.quarkus.logging.Log;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
package io.quarkus.smallrye.reactivemessaging.rabbitmq.deployment.devconsole;
package io.quarkus.smallrye.reactivemessaging.rabbitmq.deployment.devui;

import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.deployment.IsDevelopment;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem;
import io.quarkus.devconsole.spi.DevConsoleRuntimeTemplateInfoBuildItem;
import io.quarkus.devui.spi.JsonRPCProvidersBuildItem;
import io.quarkus.devui.spi.page.CardPageBuildItem;
import io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devconsole.DevRabbitMqHttpPortSupplier;
import io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devconsole.RabbitHttpPortFinder;
import io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devconsole.RabbitMqJsonRpcService;
import io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devui.RabbitHttpPortFinder;
import io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devui.RabbitMqJsonRpcService;

public class RabbitDevConsoleProcessor {

@BuildStep(onlyIf = IsDevelopment.class)
public DevConsoleRuntimeTemplateInfoBuildItem collectInfos(CurateOutcomeBuildItem curateOutcomeBuildItem) {
return new DevConsoleRuntimeTemplateInfoBuildItem("rabbitHttpPort",
new DevRabbitMqHttpPortSupplier(), this.getClass(), curateOutcomeBuildItem);
}
public class RabbitDevUIProcessor {

@BuildStep(onlyIf = IsDevelopment.class)
AdditionalBeanBuildItem beans() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devconsole;
package io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devui;

import java.util.function.Supplier;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devconsole;
package io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devui;

import java.util.function.Supplier;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devconsole;
package io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devui;

import jakarta.enterprise.event.Observes;
import jakarta.inject.Singleton;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devconsole;
package io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devui;

import jakarta.annotation.PostConstruct;
import jakarta.enterprise.context.ApplicationScoped;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.smallrye.reactivemessaging.deployment.devconsole;
package io.quarkus.smallrye.reactivemessaging.deployment.devui;

import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT;

Expand All @@ -12,23 +12,17 @@
import io.quarkus.arc.processor.InjectionPointInfo;
import io.quarkus.deployment.IsDevelopment;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem;
import io.quarkus.devconsole.spi.DevConsoleRuntimeTemplateInfoBuildItem;
import io.quarkus.devui.spi.JsonRPCProvidersBuildItem;
import io.quarkus.devui.spi.page.CardPageBuildItem;
import io.quarkus.devui.spi.page.Page;
import io.quarkus.smallrye.reactivemessaging.deployment.ReactiveMessagingDotNames;
import io.quarkus.smallrye.reactivemessaging.runtime.devconsole.Connectors;
import io.quarkus.smallrye.reactivemessaging.runtime.devconsole.DevConsoleRecorder;
import io.quarkus.smallrye.reactivemessaging.runtime.devconsole.DevReactiveMessagingInfosSupplier;
import io.quarkus.smallrye.reactivemessaging.runtime.devui.Connectors;
import io.quarkus.smallrye.reactivemessaging.runtime.devui.DevConsoleRecorder;
import io.quarkus.smallrye.reactivemessaging.runtime.devui.ReactiveMessagingJsonRpcService;

public class ReactiveMessagingDevConsoleProcessor {
public class ReactiveMessagingDevUIProcessor {

@BuildStep(onlyIf = IsDevelopment.class)
public DevConsoleRuntimeTemplateInfoBuildItem collectInfos(CurateOutcomeBuildItem curateOutcomeBuildItem) {
return new DevConsoleRuntimeTemplateInfoBuildItem("reactiveMessagingInfos",
new DevReactiveMessagingInfosSupplier(), this.getClass(), curateOutcomeBuildItem);
}

@Record(STATIC_INIT)
@io.quarkus.deployment.annotations.Record(STATIC_INIT)
@BuildStep(onlyIf = IsDevelopment.class)
public void collectInjectionInfo(DevConsoleRecorder recorder, BeanDiscoveryFinishedBuildItem beanDiscoveryFinished) {
Map<String, String> emitters = new HashMap<>();
Expand Down Expand Up @@ -59,4 +53,19 @@ AdditionalBeanBuildItem beans() {
return AdditionalBeanBuildItem.unremovableOf(Connectors.class);
}

@BuildStep(onlyIf = IsDevelopment.class)
CardPageBuildItem create() {
CardPageBuildItem card = new CardPageBuildItem();
card.addPage(Page.webComponentPageBuilder()
.title("Channels")
.componentLink("qwc-smallrye-reactive-messaging-channels.js")
.icon("font-awesome-solid:diagram-project"));

return card;
}

@BuildStep(onlyIf = IsDevelopment.class)
JsonRPCProvidersBuildItem createJsonRPCServiceForCache() {
return new JsonRPCProvidersBuildItem(ReactiveMessagingJsonRpcService.class);
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class QwcSmallryeReactiveMessagingChannels extends LitElement {
`;

static properties = {
"_channels": {state: true, type: Array}
_channels: {state: true, type: Array}
}

/**
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.smallrye.reactivemessaging.runtime.devconsole;
package io.quarkus.smallrye.reactivemessaging.runtime.devui;

import java.util.ArrayList;
import java.util.HashMap;
Expand All @@ -12,8 +12,8 @@
import org.eclipse.microprofile.config.Config;

import io.quarkus.runtime.StartupEvent;
import io.quarkus.smallrye.reactivemessaging.runtime.devconsole.DevReactiveMessagingInfos.Component;
import io.quarkus.smallrye.reactivemessaging.runtime.devconsole.DevReactiveMessagingInfos.ComponentType;
import io.quarkus.smallrye.reactivemessaging.runtime.devui.DevReactiveMessagingInfos.Component;
import io.quarkus.smallrye.reactivemessaging.runtime.devui.DevReactiveMessagingInfos.ComponentType;

// we use a separate component due to weird class loading issues that occur when accessing config properties
@Singleton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.smallrye.reactivemessaging.runtime.devconsole;
package io.quarkus.smallrye.reactivemessaging.runtime.devui;

import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.smallrye.reactivemessaging.runtime.devconsole;
package io.quarkus.smallrye.reactivemessaging.runtime.devui;

import java.util.ArrayList;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.smallrye.reactivemessaging.runtime.devconsole;
package io.quarkus.smallrye.reactivemessaging.runtime.devui;

import java.util.List;

Expand All @@ -10,8 +10,6 @@
@ApplicationScoped
public class ReactiveMessagingJsonRpcService {

// IMPORTANT: To avoid having to depend on jackson, we build a JSON array containing the description of the channels.

public JsonArray getInfo() {
JsonArray result = new JsonArray();

Expand Down
Loading

0 comments on commit 2039e0a

Please sign in to comment.