Class 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
    • Constructor Detail

      • FeatureDeploymentListener

        public FeatureDeploymentListener()
    • 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:
        canHandle in interface org.apache.felix.fileinstall.ArtifactListener
      • transform

        public URL transform​(URL artifact)
        Specified by:
        transform in interface org.apache.felix.fileinstall.ArtifactUrlTransformer
      • bundleChanged

        public void bundleChanged​(org.osgi.framework.BundleEvent bundleEvent)
        Specified by:
        bundleChanged in interface org.osgi.framework.BundleListener