Class GitHubDecisionContext<E,C extends GitHubCause<C>>
- java.lang.Object
-
- com.github.kostyasha.github.integration.generic.GitHubDecisionContext<E,C>
-
- Direct Known Subclasses:
GitHubBranchDecisionContext
,GitHubPRDecisionContext
,GitHubTagDecisionContext
public abstract class GitHubDecisionContext<E,C extends GitHubCause<C>> extends Object
- Author:
- Kanstantsin Shautsou
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GitHubDecisionContext(TaskListener listener, GitHubTrigger<?> trigger, GitHubSCMSource scmSource, GitHubHandler handler)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract C
checkEvent(E event)
GitHubHandler
getHandler()
TaskListener
getListener()
org.kohsuke.github.GHRepository
getRemoteRepository()
GitHubSCMSource
getScmSource()
GitHubTrigger<?>
getTrigger()
abstract C
newCause(String reason, boolean skip)
-
-
-
Constructor Detail
-
GitHubDecisionContext
protected GitHubDecisionContext(@NonNull TaskListener listener, GitHubTrigger<?> trigger, GitHubSCMSource scmSource, GitHubHandler handler)
-
-
Method Detail
-
getListener
@NonNull public TaskListener getListener()
-
getRemoteRepository
@NonNull public org.kohsuke.github.GHRepository getRemoteRepository() throws IOException
- Throws:
IOException
-
getScmSource
@CheckForNull public GitHubSCMSource getScmSource()
-
getHandler
@CheckForNull public GitHubHandler getHandler()
-
getTrigger
@CheckForNull public GitHubTrigger<?> getTrigger()
-
checkEvent
public abstract C checkEvent(E event) throws IOException
- Throws:
IOException
-
-