[
https://issues.apache.org/jira/browse/FELIX-3837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13543103#comment-13543103
]
Jérémy Cazaux commented on FELIX-3837:
--------------------------------------
2 ways to do globally the same thing in two different phases (compile &
runtime).
With the runtime way, a new service will be registered in the OSGi registry
just to manipulate metadata before factories creation (more expensive at
runtime). The main advantage of the runtime way is that if our own iPOJO
handler and a transformer which automate definition of this handler are not
included in a profil of an OSGi server then all others factories can still be
valid and can instantiate new instances easily (the handler will not be added
in the component definition). However the runtime way imply that metadata
modifications will be applied to all factories (and not just a group of
factories).
So that remains to be seen if we want two ways to manipulate metadata elements.
> PojoizationPlugin should be more extensible
> -------------------------------------------
>
> Key: FELIX-3837
> URL: https://issues.apache.org/jira/browse/FELIX-3837
> Project: Felix
> Issue Type: Improvement
> Components: iPOJO
> Reporter: Jérémy Cazaux
> Attachments: 0001-PojoizationPlugin-should-be-more-extensible.patch
>
>
> I would like to extend Pojoization plugin without duplication of code in
> order to manipulate metadata elements from the CacheableMetadataProvider
> object just before the pojoization operation (for example to automate the
> definition of my own handlers in the manifest).
> So all fields and methods should be protected instead of private and a new
> mechanism should be add in order to allow to manipulate cacheable metadata
> easily.
> I have attached a patch to fix this issue if the extensibility of the plugin
> is acceptable.
--
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