org.apache.karaf.features
Interface FeaturesService

All Known Implementing Classes:
FeaturesServiceImpl

public interface FeaturesService

The service managing features repositories.


Nested Class Summary
static class FeaturesService.Option
           
 
Method Summary
 void addRepository(java.net.URI url)
           
 Feature getFeature(java.lang.String name)
           
 Feature getFeature(java.lang.String name, java.lang.String version)
           
 void installFeature(Feature f, java.util.EnumSet<FeaturesService.Option> options)
           
 void installFeature(java.lang.String name)
           
 void installFeature(java.lang.String name, java.lang.String version)
           
 void installFeature(java.lang.String name, java.lang.String version, java.util.EnumSet<FeaturesService.Option> options)
           
 void installFeatures(java.util.Set<Feature> features, java.util.EnumSet<FeaturesService.Option> options)
           
 boolean isInstalled(Feature f)
           
 Feature[] listFeatures()
           
 Feature[] listInstalledFeatures()
           
 Repository[] listRepositories()
           
 void removeRepository(java.net.URI url)
           
 void restoreRepository(java.net.URI url)
           
 void uninstallFeature(java.lang.String name)
           
 void uninstallFeature(java.lang.String name, java.lang.String version)
           
 void validateRepository(java.net.URI uri)
          Validate repository contents.
 

Method Detail

validateRepository

void validateRepository(java.net.URI uri)
                        throws Exception
Validate repository contents.

Parameters:
uri - Repository uri.
Throws:
Exception - When validation fails.

addRepository

void addRepository(java.net.URI url)
                   throws Exception
Throws:
Exception

removeRepository

void removeRepository(java.net.URI url)

restoreRepository

void restoreRepository(java.net.URI url)
                       throws Exception
Throws:
Exception

listRepositories

Repository[] listRepositories()

installFeature

void installFeature(java.lang.String name)
                    throws Exception
Throws:
Exception

installFeature

void installFeature(java.lang.String name,
                    java.lang.String version)
                    throws Exception
Throws:
Exception

installFeature

void installFeature(java.lang.String name,
                    java.lang.String version,
                    java.util.EnumSet<FeaturesService.Option> options)
                    throws Exception
Throws:
Exception

installFeature

void installFeature(Feature f,
                    java.util.EnumSet<FeaturesService.Option> options)
                    throws Exception
Throws:
Exception

installFeatures

void installFeatures(java.util.Set<Feature> features,
                     java.util.EnumSet<FeaturesService.Option> options)
                     throws Exception
Throws:
Exception

uninstallFeature

void uninstallFeature(java.lang.String name)
                      throws Exception
Throws:
Exception

uninstallFeature

void uninstallFeature(java.lang.String name,
                      java.lang.String version)
                      throws Exception
Throws:
Exception

listFeatures

Feature[] listFeatures()
                       throws Exception
Throws:
Exception

listInstalledFeatures

Feature[] listInstalledFeatures()

isInstalled

boolean isInstalled(Feature f)

getFeature

Feature getFeature(java.lang.String name,
                   java.lang.String version)
                   throws Exception
Throws:
Exception

getFeature

Feature getFeature(java.lang.String name)
                   throws Exception
Throws:
Exception


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