@ApplicationScoped @Startup public class PostCommitNotificationServiceImpl extends Object implements PostCommitNotificationService
BUNDLE_PARAM
Constructor and Description |
---|
PostCommitNotificationServiceImpl(SessionInfo sessionInfo,
javax.enterprise.event.Event<PostCommitNotificationEvent> notificationEvent,
MessageReader reader) |
Modifier and Type | Method and Description |
---|---|
void |
init() |
void |
notifyUser(GitRepository repo,
Integer exitCode)
Triggers the notification for a given repo & exitCode
|
@Inject public PostCommitNotificationServiceImpl(SessionInfo sessionInfo, javax.enterprise.event.Event<PostCommitNotificationEvent> notificationEvent, MessageReader reader)
@PostConstruct public void init()
public void notifyUser(GitRepository repo, Integer exitCode)
PostCommitNotificationService
notifyUser
in interface PostCommitNotificationService
repo
- The GitRepository
that triggered the post-commit git hookexitCode
- The exit code of the post-commit scriptCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.