[ 
https://issues.apache.org/jira/browse/KARAF-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13915797#comment-13915797
 ] 

Jean-Baptiste Onofré commented on KARAF-2797:
---------------------------------------------

We can keep the default behavior as it is now, but introduce an option (in 
FeatureService, so feature:uninstall command and corresponding MBean operation) 
to avoid the refresh. We already have some similar options for feature:install.

> Allow FeaturesService to specify options during feature uninstallation
> ----------------------------------------------------------------------
>
>                 Key: KARAF-2797
>                 URL: https://issues.apache.org/jira/browse/KARAF-2797
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 2.3.4
>            Reporter: Grzegorz Grzybek
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.4.0, 3.0.1, 3.1.0, 2.3.5
>
>
> Feature unintallation causes refreshing all packages of OSGi system:
> {code:java}
> org.osgi.service.packageadmin.PackageAdmin.refreshPackages(null)
> {code}
> that's usually reasonable. But sometimes it'd be better to uninstall some 
> features and then perform the refreshing.
> My case is a test scenarion when I want to iterate over available features 
> and install+uninstall each of them. Refreshing all packages causes unexpected 
> behaviour of e.g., PAX Exam system.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to