[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Type introspection using joinpoints
|
- From: Ramnivas Laddad <ramnivas@xxxxxxxxxxxxxxx>
- Date: Sun, 22 Mar 2009 08:30:47 -0400
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=fXPECCSvopciNBAx0IQ8JFtr5F6NFI/lFIcSGkU5Bzo=; b=NOZ5STpHehhM4Ai92eCaVfqkG1Sn74sE7yLgF9KqHdEkV6IE16fnm/+y3ERvoPE3UG qMEgNUQ14pomqiqhg26k6f2RjBrzFFGBwxUdnBBhcOKbVwActDpbrfn+lkNqBBR9cWbI ECpKB8v66h1SmLDpF9auC1s8TIk4fX4rLC18k=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=kw260KM/OlkkYKty4bPi7eXeItxOMFzwOH4e8Z3P9fA5DJ8BWrmqdwT9iZX0a2fyds 6PS0i7tlj6KJF3ZVO5rSNIso7NaY0/qubvf6wYqc2u9oQ/owzQnEBBtfwu/XUXAyl5yJ 8QW+bXJ3VtKZ7DzgDuafV3lOrVXLANwrJQ1PI=
Take a look at how the Spring framework uses classpath scanning to
implement a similar idea. In its case, it uses classpath scanning
along with autowiring to compose the application.
-Ramnivas
On Sun, Mar 22, 2009 at 4:38 AM, Ruben Vermeersch <ruben@xxxxxxxxxx> wrote:
> Hi,
>
> I am currently working on a masters thesis on aspect-oriented middleware
> platforms. In these platforms, services are usually composed with the
> application, by means of annotations. This makes aspects (and aspectj in
> particular, which I have chosen to be my platform to build upon) a
> perfect fit for inserting the middleware services into the application.
>
> The grand idea is that I separate each middleware service into an small
> module. Upon launching an application, dependency analysis is performed
> and the application is combined with exactly its needs, using load-time
> weaving. The effect being that the application runs in a just-in-time
> created middleware architecture, fit to its needs.
>
> This works fine for some cases, but in others I have found the joinpoint
> model lacking, or I am still looking for a good way to handle them.
>
> As an example: Declaring @WebService on a class might imply that this
> class is accessible as a SOAP service.
>
> To provide this SOAP endpoint, I have to register this class with the
> web stack. This has to occur when starting the application, so I need a
> way to match all classes annotated with @WebService and act upon them.
>
> If I understand correctly though, load-time weaving is only performed
> when actually loading the class, so there's no way to find these classes
> until they are invoked.
>
> Does anyone know a solution to this problem? Is it possible to do type
> introspection using joinpoints?
>
> All help appreciated!
>
> Thanks already,
> Ruben Vermeersch
>
>
> --
> Ruben Vermeersch (rubenv)
> http://www.savanne.be/
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>