public class KarServiceImpl extends Object implements KarService
| Constructor and Description |
|---|
KarServiceImpl(String karafBase,
org.apache.karaf.features.FeaturesService featuresService) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(String repoName,
List<String> features,
PrintStream console)
Create a kar from the given feature and repo names.
|
void |
install(URI karUri)
Install KAR from a given URI
Resources will be copied to the karaf base dir
Repository contents will be copied to a subdir in the
karaf data directory
|
void |
install(URI karUri,
File repoDir,
File resourceDir)
Install a kar with manually given repository and
resource directories.
|
boolean |
isNoAutoRefreshBundles() |
List<String> |
list()
List the KAR stored in the data folder.
|
void |
setNoAutoRefreshBundles(boolean noAutoRefreshBundles) |
void |
uninstall(String karName)
Uninstall the given KAR
|
public KarServiceImpl(String karafBase, org.apache.karaf.features.FeaturesService featuresService)
public void install(URI karUri) throws Exception
KarServiceinstall in interface KarServicekarUri - Uri of the kar to be installedException - in case of installation failure.public void install(URI karUri, File repoDir, File resourceDir) throws Exception
KarServiceinstall in interface KarServicekarUri - Uri of the kar to be installedrepoDir - destination for the repository contents of the karresourceDir - destination for the resource contents of the karExceptionpublic void uninstall(String karName) throws Exception
KarServiceuninstall in interface KarServicekarName - the name of the KARException - in case of failurepublic List<String> list() throws Exception
KarServicelist in interface KarServiceException - in case of listing failure.public void create(String repoName, List<String> features, PrintStream console)
KarServicecreate in interface KarServicepublic boolean isNoAutoRefreshBundles()
public void setNoAutoRefreshBundles(boolean noAutoRefreshBundles)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.