[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[aspectj-users] How to remove aspectjrt.jar runtime dependecy while using AspectJ
- From: Rajendra Prasad Vissapragada <rajvissa@xxxxxxxxx>
- Date: Thu, 2 Mar 2006 13:04:48 +0000 (GMT)
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=jJ8y03caMfnJqEh3l343BsI7JFYOrYeU642p8MtWLlt5Yw5wwAC4epI9EOoOOXJXSCQmOVEclJdJ/AgMPkoTiOxLeWfCRi0c/a9uqUheODmvDSeuz0I6ggoR9i1/URJoGBz6JQ65n8o/0evkL9KpX26kIDSbE/UNkhCKdb4WPEU= ;
The reason we can't have dependency on aspectjrt.jar
is it will be run in a applet like env. on the client
machine who may have plain JDK installed and on
And we don't want to force clients to download
aspectjrt.jar. We want just the logging to be enabled
To be clear, at the compilation time the aspects have
to be injected into the code/class files and that
should be the AspectJ dependecy end.
Is there any way I can do this, even some alternatives
of it will do as long as I don't require aspectjrt.jar
Date: Thu, 2 Mar 2006 12:33:48 +0000
From: "Andy Clement" <andrew.clement@xxxxxxxxx>
Subject: Re: [aspectj-users] How to remove
dependecy while using AspectJ
Content-Type: text/plain; charset="iso-8859-1"
Depending on the features you are using in the aspect,
you may or may
have a hard dependency on aspectjrt.jar - are you
thisJoinPoint/thisJoinPointStaticPart? or cflow? those
are the kind of
things that cause you a dependency on aspectjrt.jar.
Why is it that you cannot have a dependency on
aspectjrt.jar - is it
is too big? It is true aspectjrt.jar has grown a lot
is likely you only need a small subset (unless you are
using the new
reflection support or using the @AJ syntax
development). We have been
having thoughts about shipping multiple variants, a
small core one for
environments like J2ME that don't need the extras and
the big one for
wanting to utilise all the capabilities.
On 02/03/06, Rajendra Prasad Vissapragada
> I have a scenario, where I would like to implement
> logging using aspects(AspectJ). But when we build
> AJC the ajc weaves logging code into the class files
> and also keeps a reference to aspectjrt.jar classes.
> I want aspectj to weave the logging into the code,
> shouldn't require the aspectjrt.jar (although it is
> smaller footprint).
> Plainly speaking it should run under normal JVM.
> Is there any way of doing this?
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry