Class FeatureDeploymentListener
- java.lang.Object
-
- org.apache.karaf.deployer.features.FeatureDeploymentListener
-
- All Implemented Interfaces:
EventListener,org.apache.felix.fileinstall.ArtifactListener,org.apache.felix.fileinstall.ArtifactUrlTransformer,org.osgi.framework.BundleListener
public class FeatureDeploymentListener extends Object implements org.apache.felix.fileinstall.ArtifactUrlTransformer, org.osgi.framework.BundleListener
A deployment listener able to hot deploy a feature descriptor
-
-
Field Summary
Fields Modifier and Type Field Description static StringFEATURE_PATH
-
Constructor Summary
Constructors Constructor Description FeatureDeploymentListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbundleChanged(org.osgi.framework.BundleEvent bundleEvent)booleancanHandle(File artifact)voiddestroy()org.osgi.framework.BundleContextgetBundleContext()org.apache.karaf.features.FeaturesServicegetFeaturesService()voidinit()voidsetBundleContext(org.osgi.framework.BundleContext bundleContext)voidsetFeaturesService(org.apache.karaf.features.FeaturesService featuresService)URLtransform(URL artifact)
-
-
-
Field Detail
-
FEATURE_PATH
public static final String FEATURE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
setFeaturesService
public void setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
-
getFeaturesService
public org.apache.karaf.features.FeaturesService getFeaturesService()
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
-
destroy
public void destroy()
-
canHandle
public boolean canHandle(File artifact)
- Specified by:
canHandlein interfaceorg.apache.felix.fileinstall.ArtifactListener
-
transform
public URL transform(URL artifact)
- Specified by:
transformin interfaceorg.apache.felix.fileinstall.ArtifactUrlTransformer
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent bundleEvent)
- Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-
-