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