public class FeaturesEventHandler extends FeaturesSupport implements org.apache.karaf.cellar.core.event.EventHandler<ClusterFeaturesEvent>
| Modifier and Type | Field and Description |
|---|---|
static String |
SWITCH_ID |
featuresService| Constructor and Description |
|---|
FeaturesEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
org.apache.karaf.cellar.core.control.Switch |
getSwitch()
Get the handler switch.
|
Class<ClusterFeaturesEvent> |
getType()
Get the event type that this handler is able to handle.
|
void |
handle(ClusterFeaturesEvent event)
Handle a received cluster features event.
|
void |
init(org.osgi.framework.BundleContext bundleContext) |
getFeaturesService, isFeatureInstalledLocally, isRepositoryRegisteredLocally, setFeaturesServicepublic static final String SWITCH_ID
public void init(org.osgi.framework.BundleContext bundleContext)
init in class FeaturesSupportpublic void destroy()
destroy in class FeaturesSupportpublic void handle(ClusterFeaturesEvent event)
handle in interface org.apache.karaf.cellar.core.event.EventHandler<ClusterFeaturesEvent>event - the received cluster feature event.public Class<ClusterFeaturesEvent> getType()
getType in interface org.apache.karaf.cellar.core.Handler<ClusterFeaturesEvent>public org.apache.karaf.cellar.core.control.Switch getSwitch()
getSwitch in interface org.apache.karaf.cellar.core.Handler<ClusterFeaturesEvent>Copyright © 2019 The Apache Software Foundation. All rights reserved.