aspose file tools*
The moose likes Java in General and the fly likes Has Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Has "Event Process in Action" something to do with AOP (Aspect Oriented Programming)?" Watch "Has "Event Process in Action" something to do with AOP (Aspect Oriented Programming)?" New topic
Author

Has "Event Process in Action" something to do with AOP (Aspect Oriented Programming)?

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689
Hi,

I'd like to know if "Event Process in Action" has something to do with AOP (Aspect Oriented Programming).

Thank you


SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
Opher Etzion
author
Greenhorn

Joined: Aug 04, 2010
Posts: 14
The idea is indeed in the spirit of AOP; providing different way to implement certain functions not in conventional programming.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I don't see any relation at all; could you elaborate on how they're similar? Thanks!
Will Hartung
Greenhorn

Joined: Nov 19, 2008
Posts: 13
David Newton wrote:I don't see any relation at all; could you elaborate on how they're similar? Thanks!


Perhaps in the sense that the rules and actions are "around" the events, versus the actual events themselves. You have various observers keyed to the lifecycle of the event and execute logic upon those, rather than necessarily specifically on the event.

The events are "ignorant" of the logic, the processing system is firing logic as the events go by.

In a similar manner, but perhaps reversed manner, in AOP the logic is ignorant of the aspects. AOP is all about instrumenting the runtime to get your aspect logic injected in to the function call flow of the application, much like event processing is based on the event flow.

Perhaps it's a reach, but in the right light, you can perhaps see how they're similar.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Yeah, I realized after posting that there's a lot of around and processing chains that are AOP-like; I didn't get around to following up. Thanks!
Opher Etzion
author
Greenhorn

Joined: Aug 04, 2010
Posts: 14
The principle in event processing is that there are "event producers", "event consumers" and "event processing agents". There is a separation principle here, in the sense that they are independent - an event producer does not know what processing is done with the events it produces, and an event processing agent is totally independent both from the producer and consumer. This total independence of each component has some similarity to the idea of AOP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Has "Event Process in Action" something to do with AOP (Aspect Oriented Programming)?
 
Similar Threads
AOP module
AOP
Understanding AOP
DI and AOP
AOP or OOP