You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Bosschaert (JIRA)" <ji...@apache.org> on 2017/02/24 08:46:44 UTC
[jira] [Closed] (FELIX-5564) @Deactivate method with int reason and
component property type annotation does not get called
[ https://issues.apache.org/jira/browse/FELIX-5564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Bosschaert closed FELIX-5564.
-----------------------------------
Resolution: Works for Me
> @Deactivate method with int reason and component property type annotation does not get called
> ---------------------------------------------------------------------------------------------
>
> Key: FELIX-5564
> URL: https://issues.apache.org/jira/browse/FELIX-5564
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-2.0.6
> Reporter: David Bosschaert
> Assignee: Carsten Ziegeler
>
> I can have @Deactivate method with a component property type (annotation) like this:
> {code}@Deactivate
> private void deactivate(Config myCfg){code}
> I can also have a @Deactivate method with an int reason like this:
> {code}@Deactivate
> private void deactivate(int reason){code}
> Both of these work.
> However combining these does not work:
> {code}@Deactivate
> private void deactivate(int reason, Config myCfg){code}
> In this case my deactivate method never gets called.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)