felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-4053) Avoid @StaticServiceProperty to be used on classes
Date Mon, 06 May 2013 13:20:17 GMT
Clement Escoffier created FELIX-4053:

             Summary: Avoid @StaticServiceProperty to be used on classes
                 Key: FELIX-4053
                 URL: https://issues.apache.org/jira/browse/FELIX-4053
             Project: Felix
          Issue Type: Bug
          Components: iPOJO
    Affects Versions: ipojo-runtime-1.8.6
            Reporter: Clement Escoffier
             Fix For: ipojo-runtime-1.10

The @StaticServiceProperty annotation is made to be used like this:

    @Provides(properties = {
         @StaticServiceProperty(name="property", value="value", type = "java.lang.String")
    public class MyComponent { 

It cannot be used on classes directory (as it's attached to a provided service). To avoid
this mistake, we should set the `target` of the annotation to {}.

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