public class RepositoryEventHandler extends FeaturesSupport implements org.apache.karaf.cellar.core.event.EventHandler<ClusterRepositoryEvent>
| Modifier and Type | Field and Description |
|---|---|
static String |
SWITCH_ID |
featuresService| Constructor and Description |
|---|
RepositoryEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
org.apache.karaf.cellar.core.control.Switch |
getSwitch() |
Class<ClusterRepositoryEvent> |
getType() |
void |
handle(ClusterRepositoryEvent event)
Handle cluster features repository 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(ClusterRepositoryEvent event)
handle in interface org.apache.karaf.cellar.core.event.EventHandler<ClusterRepositoryEvent>event - the cluster event to handle.public Class<ClusterRepositoryEvent> getType()
getType in interface org.apache.karaf.cellar.core.Handler<ClusterRepositoryEvent>public org.apache.karaf.cellar.core.control.Switch getSwitch()
getSwitch in interface org.apache.karaf.cellar.core.Handler<ClusterRepositoryEvent>Copyright © 2016 The Apache Software Foundation. All rights reserved.