Refactored module structure

This commit is contained in:
Michael Schnell
2019-12-30 18:49:39 +01:00
parent fd08bb49ef
commit 291cb9f255
45 changed files with 329 additions and 2052 deletions

View File

@@ -31,7 +31,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<esc.version>0.3.1-SNAPSHOT</esc.version>
<esc.version>0.3.1</esc.version>
</properties>
<dependencyManagement>
@@ -63,13 +63,13 @@
<dependency>
<groupId>org.fuin</groupId>
<artifactId>ddd-4-java</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1</version>
</dependency>
<dependency>
<groupId>org.fuin</groupId>
<artifactId>cqrs-4-java</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.1</version>
</dependency>
<dependency>
@@ -250,7 +250,7 @@
<dependency>
<groupId>org.fuin</groupId>
<artifactId>units4j</artifactId>
<version>0.8.3</version>
<version>0.8.4</version>
<scope>test</scope>
</dependency>

View File

@@ -25,7 +25,7 @@ import org.fuin.cqrs4j.example.javasecdi.cmd.domain.PersonRepository;
import org.fuin.cqrs4j.example.javasecdi.cmd.domain.PersonRepositoryFactory;
import org.fuin.cqrs4j.example.shared.PersonId;
import org.fuin.cqrs4j.example.shared.PersonName;
import org.fuin.esc.api.EventStore;
import org.fuin.esc.esjc.IESJCEventStore;
import org.fuin.ext4logback.LogbackStandalone;
import org.fuin.ext4logback.NewLogConfigFileParams;
import org.slf4j.Logger;
@@ -39,7 +39,7 @@ public class CmdExampleApp {
private static final Logger LOG = LoggerFactory.getLogger(CmdExampleApp.class);
@Inject
private Instance<EventStore> eventStoreInstance;
private Instance<IESJCEventStore> eventStoreInstance;
/**
* Executes the application.
@@ -49,7 +49,7 @@ public class CmdExampleApp {
LOG.info("Executing...");
try (final EventStore eventStore = eventStoreInstance.get()) {
try (final IESJCEventStore eventStore = eventStoreInstance.get()) {
final PersonId id = new PersonId(UUID.fromString("f645969a-402d-41a9-882b-d2d8000d0f43"));
final PersonName name = new PersonName("Peter Parker Inc.");

View File

@@ -4,7 +4,7 @@ import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.Dependent;
import javax.enterprise.inject.Produces;
import org.fuin.esc.api.EventStore;
import org.fuin.esc.esjc.IESJCEventStore;
/**
* CDI factory that creates an event store connection and repositories.
@@ -22,7 +22,7 @@ public class PersonRepositoryFactory {
*/
@Produces
@Dependent
public PersonRepository create(final EventStore eventStore) {
public PersonRepository create(final IESJCEventStore eventStore) {
return new PersonRepository(eventStore);
}