Package com.atlassian.crowd.listener
Class AbstractTransactionalEventListener
java.lang.Object
com.atlassian.crowd.listener.AbstractTransactionalEventListener
- Direct Known Subclasses:
GroupMembershipChangeListener
Base class for listeners that manage transactions on it's own.
-
Constructor Summary
ConstructorDescriptionAbstractTransactionalEventListener
(com.atlassian.event.api.EventPublisher eventPublisher, org.springframework.transaction.PlatformTransactionManager transactionManager, boolean enabled) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doInNewTransaction
(Runnable runnable) protected boolean
void
register()
void
-
Constructor Details
-
AbstractTransactionalEventListener
public AbstractTransactionalEventListener(com.atlassian.event.api.EventPublisher eventPublisher, org.springframework.transaction.PlatformTransactionManager transactionManager, boolean enabled)
-
-
Method Details
-
register
@PostConstruct public void register() -
unregister
@PreDestroy public void unregister() -
isEnabled
protected boolean isEnabled() -
doInNewTransaction
-