@Immutable
public interface Hooks
| Modifier and Type | Method and Description |
|---|---|
Hook |
create(String name,
Map<String,String> config,
boolean active)
Create new hook.
|
Hook |
get(int number)
Get specific hook by number.
|
Iterable<Hook> |
iterate()
Iterate them all.
|
void |
remove(int number)
Remove hook by ID.
|
Repo |
repo()
Owner of them.
|
Repo repo()
void remove(int number)
throws IOException
number - ID of the label to removeIOException - If there is any I/O problemHook get(int number)
number - Hook numberHook create(String name, Map<String,String> config, boolean active) throws IOException
name - Hook nameconfig - Configuration for the hookactive - Actually trigger the hook when the events occur?IOException - If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.