added singleton annotation to AuthorizationChangedEventProducer to be sure that it is not destroyed by the gc

This commit is contained in:
Eduard Heimbuch
2019-08-02 15:02:13 +02:00
parent e33b4dc9fc
commit 63c874917f

View File

@@ -48,6 +48,8 @@ import sonia.scm.user.User;
import sonia.scm.user.UserEvent; import sonia.scm.user.UserEvent;
import sonia.scm.user.UserModificationEvent; import sonia.scm.user.UserModificationEvent;
import javax.inject.Singleton;
/** /**
* Receives all kinds of events, which affects authorization relevant data and fires an * Receives all kinds of events, which affects authorization relevant data and fires an
* {@link AuthorizationChangedEvent} if authorization data has changed. * {@link AuthorizationChangedEvent} if authorization data has changed.
@@ -55,6 +57,7 @@ import sonia.scm.user.UserModificationEvent;
* @author Sebastian Sdorra * @author Sebastian Sdorra
* @since 1.52 * @since 1.52
*/ */
@Singleton
@EagerSingleton @EagerSingleton
public class AuthorizationChangedEventProducer { public class AuthorizationChangedEventProducer {