You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2013/05/28 06:14:21 UTC
[jira] [Closed] (FELIX-4053) Avoid @StaticServiceProperty to be
used on classes
[ https://issues.apache.org/jira/browse/FELIX-4053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier closed FELIX-4053.
------------------------------------
Fixed in the iPOJO 1.10.0 runtime
> 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
> Assignee: Clement Escoffier
> Fix For: ipojo-runtime-1.10
>
>
> The @StaticServiceProperty annotation is made to be used like this:
> @Component
> @Provides(properties = {
> @StaticServiceProperty(name="property", value="value", type = "java.lang.String")
> })
> @Instantiate(name="instanceWithProperties")
> 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