[
https://issues.apache.org/jira/browse/FELIX-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761956#action_12761956
]
David Savage commented on FELIX-1686:
-------------------------------------
Yep debug sounds like the right level if the activate method is not specified
and none is present.
Also spec behaviour sounds correct in case absence of methods when configured
in xml as this likely indicates an inconsistency and launching the component
could result in "bad things" in this case - better to shout loudly and not act
at all vs come up in a potentially broken state?
> Missing activate or deativate methods show up as Error in LogService
> --------------------------------------------------------------------
>
> Key: FELIX-1686
> URL: https://issues.apache.org/jira/browse/FELIX-1686
> Project: Felix
> Issue Type: Improvement
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.2.0
> Environment: org.apache.felix.scr-1.0.9-SNAPSHOT
> Reporter: David Savage
> Assignee: Felix Meschberger
> Priority: Trivial
> Fix For: scr-1.2.0
>
>
> If no activate or deactivate methods are registered in the xml this is not an
> error as activate and deactivate methods are optional.
> However complexity arises if user explicitly sets an activate or deactivate
> methods in xml as in this case it probably is an error if the method is not
> found.
> Thought it worth registering this issue as it caused me some confusion when I
> saw it and I needed to go digging though the code to figure out that this was
> in fact harmless.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.