org.apache.karaf.deployer.kar
Class KarArtifactInstaller

java.lang.Object
  extended by org.apache.karaf.deployer.kar.KarArtifactInstaller
All Implemented Interfaces:
org.apache.felix.fileinstall.ArtifactInstaller, org.apache.felix.fileinstall.ArtifactListener

public class KarArtifactInstaller
extends java.lang.Object
implements org.apache.felix.fileinstall.ArtifactInstaller


Constructor Summary
KarArtifactInstaller()
           
 
Method Summary
protected  boolean alreadyExtracted(java.io.File karafArchive)
           
 boolean canHandle(java.io.File file)
           
 boolean deleteLocalRepository()
           
 void destroy()
           
protected  java.io.File getArchiveTimestampFile(java.io.File karafArchive)
           
 void init()
           
 void install(java.io.File file)
           
protected  boolean isFeaturesRepository(java.io.File artifact)
           
protected  org.w3c.dom.Document parse(java.io.File artifact)
           
 void setBasePath(java.lang.String base)
           
 void setFeaturesService(FeaturesService featuresService)
           
 void setLocalRepoPath(java.lang.String localRepoPath)
           
 void uninstall(java.io.File file)
           
 void update(java.io.File file)
           
protected  void updateTimestamp(java.io.File karafArchive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KarArtifactInstaller

public KarArtifactInstaller()
Method Detail

init

public void init()

destroy

public void destroy()

install

public void install(java.io.File file)
             throws Exception
Specified by:
install in interface org.apache.felix.fileinstall.ArtifactInstaller
Throws:
Exception

uninstall

public void uninstall(java.io.File file)
               throws Exception
Specified by:
uninstall in interface org.apache.felix.fileinstall.ArtifactInstaller
Throws:
Exception

update

public void update(java.io.File file)
            throws Exception
Specified by:
update in interface org.apache.felix.fileinstall.ArtifactInstaller
Throws:
Exception

updateTimestamp

protected void updateTimestamp(java.io.File karafArchive)
                        throws Exception
Throws:
Exception

alreadyExtracted

protected boolean alreadyExtracted(java.io.File karafArchive)

getArchiveTimestampFile

protected java.io.File getArchiveTimestampFile(java.io.File karafArchive)

isFeaturesRepository

protected boolean isFeaturesRepository(java.io.File artifact)

parse

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

canHandle

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

deleteLocalRepository

public boolean deleteLocalRepository()

setBasePath

public void setBasePath(java.lang.String base)

setLocalRepoPath

public void setLocalRepoPath(java.lang.String localRepoPath)

setFeaturesService

public void setFeaturesService(FeaturesService featuresService)


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