Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Is it possible to weave 2 different classes ?(Weaving different class not main class only)
Is it possible to weave 2 different classes ? [message #1841424] Sun, 16 May 2021 07:10 Go to next message
Gianluca Zahra is currently offline Gianluca ZahraFriend
Messages: 2
Registered: May 2021
Junior Member
Is it possible to weave 2 different classes ?

i.e. Weave the main Class of a project and another class, so pointcuts :

a.hello(){
println("Say Hello")
}
b.bye(){
println("Say Bye")
}


Is this possible please ?
Re: Is it possible to weave 2 different classes ? [message #1861730 is a reply to message #1841424] Tue, 31 October 2023 10:23 Go to previous message
Tolana Audery is currently offline Tolana AuderyFriend
Messages: 4
Registered: October 2023
Junior Member
Yes, it is possible to weave two different classes. This can be done using a technique called Aspect Oriented Programming (AOP). AOP is a programming paradigm that allows you to add additional functionality to your code without modifying the code itself.

To weave two different classes, you would use an AOP weaver. An AOP weaver is a tool that can generate new code echat that intercepts and modifies the execution of your existing code.https://echat.date

[Updated on: Fri, 15 December 2023 09:47]

Report message to a moderator

Previous Topic:Joinpoint for TestNG tests?
Next Topic:Sharing aspecs between src and test module?
Goto Forum:
  


Current Time: Thu Apr 25 10:19:31 GMT 2024

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

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

Back to the top