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 2012/10/20 10:02:11 UTC
[jira] [Comment Edited] (FELIX-3699) Allow annotations to handle
custom component definitions.
[ https://issues.apache.org/jira/browse/FELIX-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13480673#comment-13480673 ]
Clement Escoffier edited comment on FELIX-3699 at 10/20/12 8:01 AM:
--------------------------------------------------------------------
@Guillaume : This looks pretty interesting, but it's a big features, probably for the 1.8.6 and not 1.8.4 (which will be released soon)
@Issac: the problem is that the manipulator must not load classes, this is because you don't know in which environment it's executed. So unfortunately, I can't load the annotations. We're working on that in iPOJO 2.0, but until this release, we will have to handle classes as strings.
was (Author: clement.escoffier):
@Guillaume : This looks pretty interesting, but it's a big features, probably for the 1.8.6 and not 1.8.4 (which will be relaased soon)
@Issac: the problem is that the manipulator must not load classes, this is because you don't know in which environment it's executed. So unfortunately, I can't load the annotations. We're working on that in iPOJO 2.0, but until this release, we will have to handle classes as strings.
> Allow annotations to handle custom component definitions.
> ---------------------------------------------------------
>
> Key: FELIX-3699
> URL: https://issues.apache.org/jira/browse/FELIX-3699
> Project: Felix
> Issue Type: New Feature
> Components: iPOJO
> Reporter: Issac Garcia
>
> Custom components are well handled in iPOJO using the metadata.xml, for example:
> <CustomComponent classname="MyClass" name="myCustomComponent">
> <requires field="service"/>
> </CustomComponent>
> The custom component definition will, for example, add handlers and so on. It works very well and is nice that iPOJO allows that kind of extensions.
> But we can't declare a custom component by using annotations, for example doing:
> @CustomComponent
> public class MyClass {...}
> It will be a nice if iPOJO allows to do it using annotations, since the same functionality must be possible with the metadata.mxl and with annotations.
--
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