felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-1686) Missing activate or deativate methods show up as Error in LogService
Date Sat, 03 Oct 2009 06:17:23 GMT

    [ https://issues.apache.org/jira/browse/FELIX-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761818#action_12761818

Felix Meschberger commented on FELIX-1686:

Actually, the spec prescribes the proposed behaviour and goes a step further:

>From 112.5.8, Activate Method:

    If the activate attribute is specified and no suitable method is located, SCR must
    log an error message with the Log Service, if present, and the component
    configuration is not activated.

Likewise for the deactivate method in 112.5.14, Deactivate Method.

> 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.

View raw message