Skip to main content



      Home
Home » Eclipse Projects » Equinox » [aspects] Use pointcut expressions to denote supplemented target
[aspects] Use pointcut expressions to denote supplemented target [message #121288] Tue, 18 November 2008 04:37 Go to next message
Eclipse UserFriend
Originally posted by: erdal.karaca.airbus.com

I want to use pointcut expressions to denote supplemented target
bundles/packages.

Maybe, like this:

Eclipse-Supplement: execution( @com.example.MyAnnot * *( .. ) )

This will weave by join points that have the @MyAnnot annotation assigned.

Is this possible somehow?
Re: [aspects] Use pointcut expressions to denote supplemented target [message #121296 is a reply to message #121288] Tue, 18 November 2008 10:56 Go to previous message
Eclipse UserFriend
Hi Erdal,

right now the supplement mechanism allows you to denote bundle symbolic
names or packages only. You can use wildcards, but no joinpoint
expressions or something like that.

What you could do with your aspect bundle is:

Eclipse-SupplementImport: the-package-of-your-annotation

This means that the aspect contained in your bundle is woven into every
bundle what imports the given package. I assume that your bundles that
are using the annotation need to import that package. Then this
supplement statement should match those bundles and let your aspect be
woven into them.

The other way would be to put the aspect into the same bundle as the
annotation definition and define a Require-Bundle on this one into those
bundles who would like to use the annotation. Then your bundles have a
Require-Bundle-Dependency on the aspect bundle, which lets the aspect be
woven into those bundles.

HTH,
-Martin



Erdal Karaca wrote:
> I want to use pointcut expressions to denote supplemented target
> bundles/packages.
>
> Maybe, like this:
>
> Eclipse-Supplement: execution( @com.example.MyAnnot * *( .. ) )
>
> This will weave by join points that have the @MyAnnot annotation assigned.
>
> Is this possible somehow?
>
>
Previous Topic:SignatureException during self-provisioning
Next Topic:Use of P2 update manager causes all TCP/IP connections to fail
Goto Forum:
  


Current Time: Sat May 10 23:05:25 EDT 2025

Powered by FUDForum. Page generated in 0.02994 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top