@Service(value=DistributionTrigger.class) @Property(name="webconsole.configurationFactory.nameHint", value="Trigger name: {name} on path {path}") public class JcrEventDistributionTriggerFactory extends Object implements DistributionTrigger
Constructor and Description |
---|
JcrEventDistributionTriggerFactory() |
Modifier and Type | Method and Description |
---|---|
void |
activate(Map<String,Object> config) |
void |
deactivate() |
void |
register(@NotNull DistributionRequestHandler requestHandler)
register a request handler to be triggered and returns a corresponding registration id
|
void |
unregister(@NotNull DistributionRequestHandler requestHandler)
unregister the given handler, if existing
|
@Property(label="Name", description="The name of the trigger.") public static final String NAME
@Deactivate public void deactivate()
public void register(@NotNull @NotNull DistributionRequestHandler requestHandler) throws DistributionException
DistributionTrigger
register
in interface DistributionTrigger
requestHandler
- handlerDistributionException
- if registration failspublic void unregister(@NotNull @NotNull DistributionRequestHandler requestHandler) throws DistributionException
DistributionTrigger
unregister
in interface DistributionTrigger
requestHandler
- handler to unregisterDistributionException
- if any error happenCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.