GH-14 - Remove Lombok from production sources.

Polished a lot of Javadoc.
This commit is contained in:
Oliver Drotbohm
2023-01-12 00:54:04 +01:00
parent 20554c3af3
commit 9ce6bf23ae
87 changed files with 3546 additions and 1061 deletions

View File

@@ -15,8 +15,6 @@
*/
package com.acme.myproject.moduleA;
import lombok.RequiredArgsConstructor;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;
@@ -24,11 +22,14 @@ import org.springframework.stereotype.Component;
* @author Oliver Drotbohm
*/
@Component
@RequiredArgsConstructor
public class ServiceComponentA {
private final ApplicationEventPublisher publisher;
ServiceComponentA(ApplicationEventPublisher publisher) {
this.publisher = publisher;
}
public void fireEvent() {
publisher.publishEvent(new SomeEventA("Message"));
}

View File

@@ -15,15 +15,10 @@
*/
package com.acme.myproject.moduleA;
import lombok.Value;
import org.jmolecules.event.annotation.DomainEvent;
/**
* @author Oliver Drotbohm
*/
@Value
@DomainEvent
public class SomeEventA {
String message;
}
public record SomeEventA(String message) {}

View File

@@ -15,8 +15,6 @@
*/
package com.acme.myproject.moduleB;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import com.acme.myproject.moduleA.ServiceComponentA;
@@ -26,9 +24,13 @@ import com.acme.myproject.moduleB.internal.InternalComponentB;
* @author Oliver Drotbohm
*/
@Component
@RequiredArgsConstructor
public class ServiceComponentB {
private final ServiceComponentA serviceComponentA;
private final InternalComponentB internalComponentB;
final ServiceComponentA serviceComponentA;
final InternalComponentB internalComponentB;
ServiceComponentB(ServiceComponentA serviceComponentA, InternalComponentB internalComponentB) {
this.serviceComponentA = serviceComponentA;
this.internalComponentB = internalComponentB;
}
}

View File

@@ -15,8 +15,6 @@
*/
package com.acme.myproject.moduleC;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import com.acme.myproject.moduleB.ServiceComponentB;
@@ -25,7 +23,11 @@ import com.acme.myproject.moduleB.ServiceComponentB;
* @author Oliver Drotbohm
*/
@Component
@RequiredArgsConstructor
class ServiceComponentC {
private final ServiceComponentB serviceComponentB;
final ServiceComponentB serviceComponentB;
ServiceComponentC(ServiceComponentB serviceComponentB) {
this.serviceComponentB = serviceComponentB;
}
}

View File

@@ -15,8 +15,6 @@
*/
package com.acme.myproject.moduleD;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import com.acme.myproject.moduleC.SomeValueC;
@@ -25,8 +23,11 @@ import com.acme.myproject.moduleC.SomeValueC;
* @author Oliver Drotbohm
*/
@ConfigurationProperties
@RequiredArgsConstructor
class ConfigurationPropertiesD {
private final SomeValueC value;
final SomeValueC value;
ConfigurationPropertiesD(SomeValueC value) {
this.value = value;
}
}

View File

@@ -15,8 +15,6 @@
*/
package com.acme.myproject.stereotypes;
import lombok.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
@@ -65,17 +63,6 @@ public class Stereotypes {
@Component
static class SomeAppInterfaceImplementation implements SomeAppInterface {}
@Value
@ConfigurationProperties("org.springframework.modulith.sample")
static class SomeConfigurationProperties {
/**
* Some test property.
*/
String test;
public SomeConfigurationProperties(String test) {
this.test = test;
}
}
static record SomeConfigurationProperties(String test) {}
}