Class FeaturesCommandSupport
- java.lang.Object
-
- org.apache.karaf.features.command.FeaturesCommandSupport
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
- Direct Known Subclasses:
FeatureExport,InfoFeatureCommand,InstallFeatureCommand,ListFeaturesCommand,ListFeatureVersionsCommand,ListProvidedFeaturesCommand,RefreshFeaturesCommand,RepoAddCommand,RepoListCommand,RepoRefreshCommand,RepoRemoveCommand,RequirementAdd,RequirementRemove,StartFeaturesCommand,StopFeaturesCommand,UninstallFeatureCommand
public abstract class FeaturesCommandSupport extends Object implements org.apache.karaf.shell.api.action.Action
-
-
Constructor Summary
Constructors Constructor Description FeaturesCommandSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddOption(org.apache.karaf.features.FeaturesService.Option option, boolean shouldAdd)protected abstract voiddoExecute(org.apache.karaf.features.FeaturesService admin)Objectexecute()protected StringgetFeatureId(org.apache.karaf.features.FeaturesService admin, String nameOrId)protected List<String>getFeatureIds(org.apache.karaf.features.FeaturesService admin, List<String> nameOrIds)protected Set<URI>selectRepositories(String nameOrUrl, String version)voidsetFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
-
-
-
Field Detail
-
options
protected EnumSet<org.apache.karaf.features.FeaturesService.Option> options
-
-
Method Detail
-
execute
public Object execute() throws Exception
- Specified by:
executein interfaceorg.apache.karaf.shell.api.action.Action- Throws:
Exception
-
doExecute
protected abstract void doExecute(org.apache.karaf.features.FeaturesService admin) throws Exception- Throws:
Exception
-
setFeaturesService
public void setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
-
addOption
protected void addOption(org.apache.karaf.features.FeaturesService.Option option, boolean shouldAdd)
-
selectRepositories
protected Set<URI> selectRepositories(String nameOrUrl, String version) throws Exception
- Throws:
Exception
-
getFeatureId
protected String getFeatureId(org.apache.karaf.features.FeaturesService admin, String nameOrId) throws Exception
- Throws:
Exception
-
-