Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > how dose spring implements aspectj manner without compile command ajc

Reply
Thread Tools

how dose spring implements aspectj manner without compile command ajc

 
 
MarlonBrando
Guest
Posts: n/a
 
      10-19-2009
the spring implements aop including aspectj manner

but the aspectj need ajc to complie the sourcecode,

how dose the spring compile just using javac instead of ajc, i did not
find it in spring source code anyway.

plz help me.
 
Reply With Quote
 
 
 
 
Marcin Rze¼nicki
Guest
Posts: n/a
 
      10-19-2009
On 19 Paź, 08:50, MarlonBrando <beneo99...@gmail.com> wrote:
> the spring implements aop including aspectj manner
>
> but the aspectj need ajc to complie the sourcecode,
>
> how dose the spring compile just using javac instead of ajc, i did not
> find it in spring source code anyway.
>
> plz help me.


The other way is to use Instrumentation package.
http://java.sun.com/javase/6/docs/ap...e-summary.html
I implemented class instrumentation this way in my coroutines lib
http://code.google.com/p/coroutines/
 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      10-25-2009
MarlonBrando wrote:
> the spring implements aop including aspectj manner
>
> but the aspectj need ajc to complie the sourcecode,
>
> how dose the spring compile just using javac instead of ajc, i did not
> find it in spring source code anyway.


http://www.eclipse.org/aspectj/doc/n...iguration.html

explains in general how it is done.

For Spring specifics you need to look in:
org.springframework.context.config
org.springframework.context.weaving

Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Spring Python 0.8.0 has been released/Spring Python goes green Goldfish Python 1 11-06-2008 06:12 PM
differences between Spring WebFlow,Spring MVC,and String Portlet MVC? rmn190 Java 2 01-10-2008 02:27 AM
ajc error msg Shin Java 1 12-02-2005 08:27 PM
running command line progs in a controlled manner kevin bailey ASP .Net 1 11-24-2004 05:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57