[
https://issues.apache.org/jira/browse/FELIX-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471479#comment-13471479
]
Guillaume Sauthier commented on FELIX-3699:
-------------------------------------------
Isn't it possible to have some kind of mapping for handler annotations as well ?
I'm thinking about the Karaf @Command annotation that I would like to traet as
a marker for including my own handler.
{noformat}
<configuration>
<handlers>
<handler>
<annotation>javax.inject.Inject</annotation>
<handler>my.company.atinject:atinject</handler>
</handler>
</handlers>
</configuration>
{noformat}
Could be even better if the maven based manipulator could use the maven
components in order to provide all theses descriptions ?
We would have to provide an extension API for describing
handlers/component-factories
{noformat}
<plugin>
<!-- ... -->
<dependencies>
<dependency>
<groupId>my.company.ipojo<groupId>
<artifactId>additional-handlers<artifactId>
</dependency>
</dependencies>
</plugin>
{noformat}
Hmmm, maybe that's a bit outside the scope of this issue :) ?
> 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