felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tuomas Kiviaho (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-3914) Log unsuccessful field injections
Date Fri, 22 Feb 2013 19:40:12 GMT

     [ https://issues.apache.org/jira/browse/FELIX-3914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Tuomas Kiviaho updated FELIX-3914:

    Attachment: ComponentImpl.patch

Here's a patch that logs failed configuration attempts when dependency auto config is turned
on. Component auto config is only reported as failure when name is explicitly declared in
order to provide backwards compatibility over the default settings where auto configuration
is turned on.

It also combines some of the scattered logic under one location and postpones lookupService
calls via getAutoConfigInstance until they are actually needed.
> Log unsuccessful field injections
> ---------------------------------
>                 Key: FELIX-3914
>                 URL: https://issues.apache.org/jira/browse/FELIX-3914
>             Project: Felix
>          Issue Type: Improvement
>          Components: Dependency Manager
>            Reporter: Tuomas Kiviaho
>         Attachments: ComponentImpl.patch
> I had an NPE scenario where service dependency's tracked class was not assignable from
a field which auto config instance name pointed to. It took me a while to figure out this
trivial error because dependency manager only reports if field setting fails but the case
where it is not even performed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message