Class GithubTriggerServiceImpl
java.lang.Object
io.meeds.github.gamification.services.impl.GithubTriggerServiceImpl
- All Implemented Interfaces:
GithubTriggerService,org.picocontainer.Startable
@Primary
@Service
public class GithubTriggerServiceImpl
extends Object
implements GithubTriggerService, org.picocontainer.Startable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(GithubTriggerPlugin githubTriggerPlugin) Add a newGithubTriggerPluginfor a given github trigger namevoidhandleTrigger(String trigger, String signature, String payload) Handle github triggervoidhandleTriggerAsync(String trigger, String signature, String payload) Handle github trigger asynchronouslyvoidhandleTriggerAsyncInternal(String trigger, String signature, String payload) voidremovePlugin(String name) Removes aGithubTriggerPluginidentified by its trigger namevoidstart()voidstop()
-
Constructor Details
-
GithubTriggerServiceImpl
public GithubTriggerServiceImpl()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-
addPlugin
Description copied from interface:GithubTriggerServiceAdd a newGithubTriggerPluginfor a given github trigger name- Specified by:
addPluginin interfaceGithubTriggerService- Parameters:
githubTriggerPlugin-GithubTriggerPlugin
-
removePlugin
Description copied from interface:GithubTriggerServiceRemoves aGithubTriggerPluginidentified by its trigger name- Specified by:
removePluginin interfaceGithubTriggerService- Parameters:
name- trigger name
-
handleTriggerAsync
Description copied from interface:GithubTriggerServiceHandle github trigger asynchronously- Specified by:
handleTriggerAsyncin interfaceGithubTriggerService- Parameters:
trigger- gitHub sent trigger.signature- The signature received from the external system.payload- payload The raw payload of the webhook request.
-
handleTriggerAsyncInternal
-
handleTrigger
Description copied from interface:GithubTriggerServiceHandle github trigger- Specified by:
handleTriggerin interfaceGithubTriggerService- Parameters:
trigger- gitHub sent trigger.signature- The signature received from the external system.payload- payload The raw payload of the webhook request.
-