I was hoping that it would be a fairly easy task to bring some aspects into our 
project, but it seems to be path not easily traveled.

Thanks for the comments

From: Tim Ward [mailto:[email protected]]
Sent: Saturday, July 16, 2016 2:39 AM
To: [email protected]
Subject: Re: WeavingHook using Felix

I would like to add that you need to be *very* careful with weaving hooks. If 
you have to add dynamic imports then you should make sure to add all the 
necessary version/target information

It is also difficult to add a weaving hook using DS or blueprint. Lazy 
behaviours cause the Weaving hook to try to weave itself.

Weaving hooks are also one of the few times that start up ordering really is 
important in OSGi. Ideally your hook will have no service dependencies, no 
configuration dependencies, be registered eagerly very early in the framework 
start process, and be very selective about what it tries to weave.

I also have one question for you. What are you trying to achieve and do you 
*really* need a weaving hook to do it? In most cases there are other, safer 
ways to achieve the same thing.

Tim Ward

OSGi IoT EG chair

Sent from my iPhone

On 16 Jul 2016, at 03:15, David Jencks 
<[email protected]<mailto:[email protected]>> wrote:
I hope there aren’t any uses that don’t work with any R5 framework.   I believe 
Apache Aries proxy and (IIRC) spi-fly use weaving hooks.

hope this helps
david jencks

On Jul 15, 2016, at 4:51 PM, Pratt, Jason 
<[email protected]<mailto:[email protected]>> wrote:

Hello - Can anyone recommend a good example for WeavingHook that uses the Felix 
framework?

Regards,
Jason

Reply via email to