GH-1 - Consistent author names.
This commit is contained in:
@@ -23,7 +23,7 @@ import java.lang.annotation.Target;
|
||||
/**
|
||||
* Annotation to customize information of a {@link Modulith} module.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Target({ ElementType.PACKAGE, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.springframework.core.annotation.AliasFor;
|
||||
/**
|
||||
* Defines a Spring Boot application to follow the Modulith structuring conventions.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Documented
|
||||
@Target(ElementType.TYPE)
|
||||
|
||||
@@ -24,7 +24,7 @@ import java.lang.annotation.Target;
|
||||
/**
|
||||
* Annotation to mark a package as named interface of a {@link Module} (either implicit or explicitly annotated).
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Documented
|
||||
@Target({ ElementType.PACKAGE, ElementType.TYPE })
|
||||
|
||||
@@ -44,7 +44,7 @@ import com.tngtech.archunit.core.domain.JavaType;
|
||||
import com.tngtech.archunit.core.domain.properties.HasName;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@ToString
|
||||
@EqualsAndHashCode
|
||||
|
||||
@@ -38,7 +38,7 @@ import com.tngtech.archunit.thirdparty.com.google.common.base.Supplier;
|
||||
import com.tngtech.archunit.thirdparty.com.google.common.base.Suppliers;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@EqualsAndHashCode
|
||||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
|
||||
@@ -58,7 +58,7 @@ import com.tngtech.archunit.thirdparty.com.google.common.base.Supplier;
|
||||
import com.tngtech.archunit.thirdparty.com.google.common.base.Suppliers;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@EqualsAndHashCode(doNotUseGetters = true)
|
||||
public class Module {
|
||||
|
||||
@@ -47,7 +47,7 @@ import com.tngtech.archunit.lang.FailureReport;
|
||||
import com.tngtech.archunit.library.dependencies.SlicesRuleDefinition;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
* @author Peter Gafert
|
||||
*/
|
||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.tngtech.archunit.core.domain.JavaModifier;
|
||||
import com.tngtech.archunit.core.domain.properties.HasModifiers;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@RequiredArgsConstructor(access = AccessLevel.PROTECTED)
|
||||
public abstract class NamedInterface implements Iterable<JavaClass> {
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.springframework.util.MultiValueMap;
|
||||
import com.tngtech.archunit.core.domain.JavaClass;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class NamedInterfaces implements Iterable<NamedInterface> {
|
||||
|
||||
@@ -74,7 +74,7 @@ import com.tngtech.archunit.core.domain.JavaClass;
|
||||
/**
|
||||
* API to create documentation for {@link Modules}.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class Documenter {
|
||||
@@ -536,7 +536,7 @@ public class Documenter {
|
||||
/**
|
||||
* Options to tweak the rendering of diagrams.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Getter(AccessLevel.PRIVATE)
|
||||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
|
||||
@@ -35,7 +35,7 @@ import com.acme.myproject.Application;
|
||||
/**
|
||||
* Unit tests for {@link Documenter}.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
class DocumenterTest {
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ import org.springframework.core.type.AnnotationMetadata;
|
||||
import org.springframework.modulith.events.config.EnablePersistentDomainEvents.PersistentDomainEventsImportSelector;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
package org.springframework.modulith.events.config;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
public interface EventPublicationConfigurationExtension {}
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
package org.springframework.modulith.events.config;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
public interface EventSerializationConfigurationExtension {}
|
||||
|
||||
@@ -20,7 +20,7 @@ import static org.assertj.core.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
class CompletableEventPublicationUnitTest {
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@RequiredArgsConstructor
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
class JacksonEventSerializer implements EventSerializer {
|
||||
@@ -35,7 +35,7 @@ class JacksonEventSerializer implements EventSerializer {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see de.olivergierke.events.EventSerializer#serialize(java.lang.Object)
|
||||
* @see de.oliverDrotbohm.events.EventSerializer#serialize(java.lang.Object)
|
||||
*/
|
||||
@Override
|
||||
public Object serialize(Object event) {
|
||||
@@ -49,7 +49,7 @@ class JacksonEventSerializer implements EventSerializer {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see de.olivergierke.events.EventSerializer#deserialize(java.lang.Object, java.lang.Class)
|
||||
* @see de.oliverDrotbohm.events.EventSerializer#deserialize(java.lang.Object, java.lang.Class)
|
||||
*/
|
||||
@Override
|
||||
public Object deserialize(Object serialized, Class<?> type) {
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.springframework.modulith.events.EventSerializer;
|
||||
import org.springframework.modulith.events.config.EventPublicationConfigurationExtension;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@RequiredArgsConstructor
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.springframework.modulith.events.config.EnablePersistentDomainEvents;
|
||||
/**
|
||||
* Enables auto-configuration for the events package.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Configuration
|
||||
@AutoConfigureBefore(HibernateJpaAutoConfiguration.class)
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.transaction.event.TransactionalEventListener;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
class PersistentDomainEventIntegrationTest {
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import com.acme.myproject.complex.internal.SecondTypeBasePort;
|
||||
import com.acme.myproject.moduleA.SomeConfigurationA.SomeAtBeanComponentA;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
* @author Peter Gafert
|
||||
*/
|
||||
class ModulesIntegrationTest {
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.acme.myproject;
|
||||
import org.springframework.modulith.Modulith;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Modulith
|
||||
public class Application {
|
||||
|
||||
@@ -17,7 +17,7 @@ package com.acme.myproject.complex.api;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
public class ComplexApiComponent {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.acme.myproject.complex.internal;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Component
|
||||
class ComplextInternalComponent {
|
||||
|
||||
@@ -17,7 +17,7 @@ package com.acme.myproject.complex.spi;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
public class ComplexSpiComponent {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.acme.myproject.cycleA;
|
||||
import com.acme.myproject.cycleB.CycleB;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
public class CycleA {
|
||||
CycleB cycleB;
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.acme.myproject.cycleB;
|
||||
import com.acme.myproject.cycleA.CycleA;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
public class CycleB {
|
||||
CycleA cycleA;
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.acme.myproject.invalid;
|
||||
import com.acme.myproject.moduleB.internal.InternalComponentB;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
public class InvalidComponent {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.acme.myproject.invalid2;
|
||||
import com.acme.myproject.moduleA.ServiceComponentA;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
public class InvalidModuleDependency {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Configuration
|
||||
public class SomeConfigurationA {
|
||||
|
||||
@@ -23,7 +23,7 @@ import com.acme.myproject.moduleA.ServiceComponentA;
|
||||
import com.acme.myproject.moduleB.internal.InternalComponentB;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.springframework.stereotype.Component;
|
||||
import com.acme.myproject.moduleA.SomeEventA;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Component
|
||||
class SomeEventListenerB {
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.acme.myproject.moduleB.internal;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Component
|
||||
public class InternalComponentB {
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.acme.myproject.moduleB.internal;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Component
|
||||
class SupportingComponentB {
|
||||
|
||||
@@ -22,7 +22,7 @@ import org.springframework.stereotype.Component;
|
||||
import com.acme.myproject.moduleB.ServiceComponentB;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
|
||||
@@ -30,7 +30,7 @@ import com.tngtech.archunit.core.domain.JavaClass;
|
||||
/**
|
||||
* Test cases to verify the validity of the overall modulith rules
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
* @author Peter Gafert
|
||||
*/
|
||||
class ModulithTest {
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.springframework.modulith.test.ModuleTest;
|
||||
import org.springframework.modulith.test.ModuleTest.BootstrapMode;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.springframework.modulith.test.ModuleTestExecution;
|
||||
import com.acme.myproject.NonVerifyingModuleTest;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@NonVerifyingModuleTest
|
||||
class ComplexTest {
|
||||
|
||||
@@ -32,7 +32,7 @@ import com.acme.myproject.moduleA.ServiceComponentA;
|
||||
import com.acme.myproject.moduleB.internal.InternalComponentB;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
class ModuleBTest {
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import com.acme.myproject.moduleA.ServiceComponentA;
|
||||
import com.acme.myproject.moduleB.ServiceComponentB;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
class ModuleCTest {
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ import org.springframework.test.context.ContextCustomizerFactory;
|
||||
import org.springframework.test.context.MergedContextConfiguration;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
class ModuleContextCustomizerFactory implements ContextCustomizerFactory {
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ import org.springframework.util.StringUtils;
|
||||
* scan and auto-configuration packages to the packages defined by the {@link ModuleTestExecution} in the application
|
||||
* context.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Configuration
|
||||
@Import(ModuleTestAutoConfiguration.AutoConfigurationAndEntityScanPackageCustomizer.class)
|
||||
|
||||
@@ -42,7 +42,7 @@ import com.tngtech.archunit.thirdparty.com.google.common.base.Supplier;
|
||||
import com.tngtech.archunit.thirdparty.com.google.common.base.Suppliers;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@Slf4j
|
||||
@EqualsAndHashCode(of = "key")
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.springframework.core.type.classreading.MetadataReader;
|
||||
import org.springframework.core.type.classreading.MetadataReaderFactory;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
class ModuleTypeExcludeFilter extends TypeExcludeFilter {
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDele
|
||||
import org.springframework.test.context.support.DefaultBootstrapContext;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
public class TestUtils {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user