Skip to content

Commit 4ca74fc

Browse files
committed
Refactor imports and logging, update persistence libraries
Modified package imports to align with "modules.services" structure and replaced deprecated persistence library usages. Additionally, refined logging behaviors and introduced Mutiny-based asynchronous patterns to improve system performance and maintainability.
1 parent caf38ba commit 4ca74fc

6 files changed

Lines changed: 10 additions & 15 deletions

File tree

PROMPT_LIBRARY_RULES_UPDATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Policies (must honor):
195195
- Logging policy: Default to Log4j2; wire logging/config/examples against Log4j2. If Lombok is selected, use Lombok's `@Log4j2` annotation (avoid other Lombok logging annotations).
196196
- Generated artifacts are read-only; do not propose edits to compiled outputs (e.g., TS/HTML/site bundles). For JWebMP specifically, do not generate or reference separate TS/HTML components for missing views—render dialogs/tables directly from Java components/cell renderers.
197197
- In JWebMP, avoid inline string HTML; express markup using JWebMP components (Div, Paragraph, Span, Table, H1–H6, etc.).
198-
- PostgreSQL (JPMS): Do not shade the driver. Use GuicedEE Services artifacts (com.guicedee.services:postgresql) and require org.postgresql in module-info.java.
198+
- PostgreSQL (JPMS): Do not shade the driver. Use GuicedEE Services artifacts (com.guicedee.modules.services:postgresql) and require org.postgresql in module-info.java.
199199
- For component-driven topics, provide a parent README index that links to each component .rules.md or subsection anchors.
200200
- Fluent API Strategy: Choose either CRTP or Builder. CRTP is enforced if GuicedEE or JWebMP is selected. Align Lombok usage accordingly:
201201
- If CRTP: do not use @Builder; implement manual CRTP fluent setters returning (J)this with @SuppressWarnings("unchecked") as needed.

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929

3030
<dependency>
3131
<groupId>com.guicedee</groupId>
32-
<artifactId>guice-inject-client</artifactId>
32+
<artifactId>client</artifactId>
3333
</dependency>
3434

3535
<dependency>
3636
<groupId>com.guicedee</groupId>
37-
<artifactId>guice-injection</artifactId>
37+
<artifactId>inject</artifactId>
3838
</dependency>
3939

4040
<dependency>

rules

Submodule rules updated 291 files

src/main/java/com/jwebmp/core/base/angular/client/DynamicData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.fasterxml.jackson.annotation.JsonAutoDetect;
44
import com.fasterxml.jackson.annotation.JsonInclude;
5-
import com.guicedee.services.jsonrepresentation.IJsonRepresentation;
5+
import com.guicedee.modules.services.jsonrepresentation.IJsonRepresentation;
66
import com.jwebmp.core.base.angular.client.annotations.angular.NgDataType;
77
import com.jwebmp.core.base.angular.client.services.interfaces.INgDataType;
88

src/main/java/com/jwebmp/core/base/angular/client/implementations/AngularTypeScriptPostStartup.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,15 @@
33
import com.google.inject.Inject;
44
import com.guicedee.client.services.lifecycle.IGuicePostStartup;
55
import com.jwebmp.core.base.angular.client.services.AnnotationHelper;
6-
import io.vertx.core.Future;
6+
import io.smallrye.mutiny.Uni;
77
import io.vertx.core.Vertx;
88

99
import java.util.List;
1010

11-
public class AngularTypeScriptPostStartup implements IGuicePostStartup<AngularTypeScriptPostStartup>
12-
{
13-
@Inject
14-
private Vertx vertx;
15-
11+
public class AngularTypeScriptPostStartup implements IGuicePostStartup<AngularTypeScriptPostStartup> {
1612
@Override
17-
public List<Future<Boolean>> postLoad()
18-
{
19-
return List.of(vertx.executeBlocking(() -> {
13+
public List<Uni<Boolean>> postLoad() {
14+
return List.of(Uni.createFrom().item(() -> {
2015
AnnotationHelper.startup();
2116
return true;
2217
}));

src/main/java/com/jwebmp/core/base/angular/client/services/interfaces/INgDataType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import com.fasterxml.jackson.annotation.JsonIgnore;
44
import com.google.common.base.Strings;
55
import com.guicedee.client.IGuiceContext;
6-
import com.guicedee.services.jsonrepresentation.IJsonRepresentation;
6+
import com.guicedee.modules.services.jsonrepresentation.IJsonRepresentation;
77
import com.jwebmp.core.base.angular.client.annotations.angular.NgDataType;
88
import com.jwebmp.core.base.angular.client.annotations.references.NgComponentReference;
99
import com.jwebmp.core.base.angular.client.services.AnnotationHelper;

0 commit comments

Comments
 (0)