Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's aopalliance all about? And why is guice using it?

I'm using guice for dependency injection with aop from aopalliance. I can't quite figure out what's aopalliance all about and who implemented the version (dated from 2004) that's on their sourceforge page. Why is guice using this version instead of a more known package such as AspectJ?

Also, do you know of any tutorials on the aopalliance version?

Thanks

like image 973
ivo Avatar asked Jun 16 '09 08:06

ivo


People also ask

How does MethodInterceptor work?

MethodInterceptor - MethodInterceptors are executed when a matching method is called. They can inspect the call: the method, its arguments, and the receiving instance. We can perform cross-cutting logic and then delegate to the underlying method. Finally, we may inspect the return value or exception and return.

What is AOP injection?

Dependency Injection helps you decouple your application objects from each other and AOP helps you decouple cross-cutting concerns from the objects that they affect. AOP is like triggers in programming languages such as Perl, . NET, Java, and others. Spring AOP module provides interceptors to intercept an application.

What is AOP in Guice?

This feature enables you to write code that is executed each time a matching method is invoked. It's suited for cross cutting concerns ("aspects"), such as transactions, security and logging. Because interceptors divide a problem into aspects rather than objects, their use is called Aspect Oriented Programming (AOP).

What is AOP alliance?

AOP Alliance is a set of interfaces that multiple frameworks implement (see AOP Alliance Motivations), including both Guice and Spring. AOP Alliance was chosen for Guice because it has a high capability and a simple API. The Guice wiki has an AOP guide.


1 Answers

AOP Alliance is a set of interfaces that multiple frameworks implement (see AOP Alliance Motivations), including both Guice and Spring.

AOP Alliance was chosen for Guice because it has a high capability and a simple API.

The Guice wiki has an AOP guide.

like image 116
Jesse Wilson Avatar answered Oct 05 '22 04:10

Jesse Wilson