[
https://issues.apache.org/jira/browse/FELIX-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919608#action_12919608
]
Clement Escoffier commented on FELIX-2594:
------------------------------------------
I've added this feature. It allows to auto-attach primitive handlers to
primitive components.
Handlers can be auto-attached if they are contained in the
'org.apache.felix.ipojo.handler.auto.primitive' system property. This
property's value must be the list (command separated) of full handler name
(naemspace:name).
For examples:
- "org.apache.felix.ipojo.test.handler.checkservice:check"
- "org.apache.felix.ipojo.test.handler.checkservice:check,
org.apache.felix.ipojo.test.handler.bla:bla"
The system property is read when the factory is created, so when the bundle
containing the component type is started. To add a new auto-attached handler,
the property needs to be updated, and the bundles (declaring component types)
restarted.
If a missing handler is added, the factories will be invalid.
> Have a way to create new custom iPojo handler without having to specify a
> handler usage
> ---------------------------------------------------------------------------------------
>
> Key: FELIX-2594
> URL: https://issues.apache.org/jira/browse/FELIX-2594
> Project: Felix
> Issue Type: Improvement
> Components: iPOJO
> Affects Versions: iPOJO-1.6.0
> Environment: Windows / Java 6
> Reporter: David GAY
> Assignee: Clement Escoffier
> Fix For: iPOJO-1.8.0
>
>
> I would like to create a new iPojo handler but without having to define the
> handler usage in metadata.
> What could be achieve with that, is an optional service method interceptor
> handler to compute some metrics and/or check some security policies for
> example. But I don't want developers have to explicitly set the handler usage.
> --- FYI : this is the original question & answer from the felix mailing list :
> http://old.nabble.com/iPojo-customer-handler-to29653865.html
> Thanks.
> David G.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.