org.apache.karaf.deployer.features
Class FeatureDeploymentListener

java.lang.Object
  extended by org.apache.karaf.deployer.features.FeatureDeploymentListener
All Implemented Interfaces:
java.util.EventListener, org.apache.felix.fileinstall.ArtifactListener, org.apache.felix.fileinstall.ArtifactUrlTransformer, org.osgi.framework.BundleListener

public class FeatureDeploymentListener
extends java.lang.Object
implements org.apache.felix.fileinstall.ArtifactUrlTransformer, org.osgi.framework.BundleListener

A deployment listener able to hot deploy a feature descriptor


Field Summary
static java.lang.String FEATURE_PATH
           
 
Constructor Summary
FeatureDeploymentListener()
           
 
Method Summary
 void bundleChanged(org.osgi.framework.BundleEvent bundleEvent)
           
 boolean canHandle(java.io.File artifact)
           
 void destroy()
           
 org.osgi.framework.BundleContext getBundleContext()
           
 FeaturesService getFeaturesService()
           
 void init()
           
protected  org.w3c.dom.Document parse(java.io.File artifact)
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 void setFeaturesService(FeaturesService featuresService)
           
 java.net.URL transform(java.net.URL artifact)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURE_PATH

public static final java.lang.String FEATURE_PATH
See Also:
Constant Field Values
Constructor Detail

FeatureDeploymentListener

public FeatureDeploymentListener()
Method Detail

setFeaturesService

public void setFeaturesService(FeaturesService featuresService)

getFeaturesService

public FeaturesService getFeaturesService()

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)

init

public void init()
          throws Exception
Throws:
Exception

destroy

public void destroy()
             throws Exception
Throws:
Exception

canHandle

public boolean canHandle(java.io.File artifact)
Specified by:
canHandle in interface org.apache.felix.fileinstall.ArtifactListener

transform

public java.net.URL transform(java.net.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

parse

protected org.w3c.dom.Document parse(java.io.File artifact)
                              throws Exception
Throws:
Exception


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.