Skip to content

Commit

Permalink
GH-239 - Polishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
odrotbohm committed Jul 18, 2023
1 parent 2270ff3 commit 4fd17a8
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import org.springframework.transaction.event.TransactionalApplicationListener;
import org.springframework.transaction.event.TransactionalEventListener;
import org.springframework.util.Assert;
import org.springframework.util.ReflectionUtils;

/**
* An {@link ApplicationEventMulticaster} to register {@link EventPublication}s in an {@link EventPublicationRegistry}
Expand All @@ -59,17 +58,11 @@ public class PersistentApplicationEventMulticaster extends AbstractApplicationEv
implements SmartInitializingSingleton {

private static final Logger LOGGER = LoggerFactory.getLogger(PersistentApplicationEventMulticaster.class);
private static final Field DECLARED_EVENT_TYPES_FIELD = ReflectionUtils
.findField(ApplicationListenerMethodAdapter.class, "declaredEventTypes");
static final String REPUBLISH_ON_RESTART = "spring.modulith.republish-outstanding-events-on-restart";

private final @NonNull Supplier<EventPublicationRegistry> registry;
private final @NonNull Supplier<Environment> environment;

static {
ReflectionUtils.makeAccessible(DECLARED_EVENT_TYPES_FIELD);
}

/**
* Creates a new {@link PersistentApplicationEventMulticaster} for the given {@link EventPublicationRegistry}.
*
Expand Down

0 comments on commit 4fd17a8

Please sign in to comment.