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/23 16:46:44 UTC
[jira] [Created] (FELIX-5564) @Deactivate method with int reason
and component property type annotation does not get called
David Bosschaert created FELIX-5564:
---------------------------------------
Summary: @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
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)