Class FeaturesCommandSupport

    • Field Detail

      • options

        protected EnumSet<org.apache.karaf.features.FeaturesService.Option> options
    • Constructor Detail

      • FeaturesCommandSupport

        public FeaturesCommandSupport()
    • Method Detail

      • execute

        public Object execute()
                       throws Exception
        Specified by:
        execute in interface org.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)
      • getFeatureId

        protected String getFeatureId​(org.apache.karaf.features.FeaturesService admin,
                                      String nameOrId)
                               throws Exception
        Throws:
        Exception