Questions tagged [aopalliance]

The AOP Alliance project is a joint open-source project between several software engineering people who are interested in AOP and Java.

From website: The AOP Alliance project is a joint open-source project between several software engineering people who are interested in AOP and Java.

19 questions
31
votes
1 answer

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…
ivo
  • 4,101
  • 5
  • 33
  • 42
6
votes
1 answer

C# and AOP - AOPAlliance (Aspect-oriented programming) how does this work

I just had a very interesting experience with AOP in C#. I have a function with a return type List which is being intercepted and that's all well and good. However the interceptor function is a validator style function and can prevent the real…
Daniel Little
  • 16,975
  • 12
  • 69
  • 93
5
votes
2 answers

Intercepting annotated methods using Spring @Configuration and MethodInterceptor

I need to intercept annotated methods using spring-aop. I already have the interceptor, it implements MethodInterceptor from AOP Alliance. Here is the code: @Configuration public class MyConfiguration { // ... @Bean public…
matafuego
  • 83
  • 1
  • 5
4
votes
1 answer

How can I log private methods via Spring AOP?

I am not able to log the private methods using spring aop performance logging. Below is the configuration I am using below configuration
Rajeev Akotkar
  • 1,377
  • 4
  • 26
  • 46
4
votes
2 answers

How do I configure my ivy.xml for guice 3.0 to use the no aop jar?

The ivy file for Guice 3.0 includes a guice-3.0-no_aop.jar. Since I am creating an Android application I would like to configure my ivy file to make use of that jar instead of the guice-3.0.jar.
ahsteele
  • 26,243
  • 28
  • 134
  • 248
3
votes
3 answers

Spring throws NoClassDefFoundError: MethodInterceptor although class exists within classpath

I'm developing a simple, training application with Spring MVC and Hibernate. I'm using Maven as build tool. All dependencies (spring, hibernate, aopalliance, junit etc.) are resolved using Maven's pom.xml file. $ mvn war:war glassfish:deploy works…
Crozin
  • 43,890
  • 13
  • 88
  • 135
2
votes
1 answer

Inheriting annotation for AOP in GUICE

I'm using Guice and AspectJ, and I am trying to do some AOP to measure the execution time of certain methods. I have this annotation which will be used to annotate all the methods I need to measure:…
Nacho321
  • 1,911
  • 7
  • 33
  • 55
2
votes
1 answer

Get Target in MethodInterceptor

How I can get Target object in my interceptor? bindInterceptor(subclassesOf(A.class), any(), new MethodInterceptor() { @Override public Object invoke(MethodInvocation methodInvocation) throws Throwable { A a =…
Stan Kurilin
  • 15,614
  • 21
  • 81
  • 132
2
votes
2 answers

how to identify a particular parameter of a method using aop?

I am trying to @Before in AOP. I have a dto where I implemented an interface and in the controller method the dto is one of the parameter and since it implemented the interface I want to identify the parameter with the implemented interface in the…
yacky
  • 313
  • 1
  • 6
  • 19
2
votes
4 answers

What is causing an HTTP 503 error in my GWT application?

I followed this tutorial for my first project using gwt,hibernate,jpa and spring. However, when I try to right click on the app and use Run as -> web application in Eclipse, the page return: HTTP ERROR: 503 --- Problem accessing /GWTSpring.html.…
Innet
  • 459
  • 3
  • 5
  • 18
1
vote
1 answer

AopAlliance (Guice): Call another method from an intercepted method

In method interception with AopAlliance is there a way to call a method from the class who's method was intercepted? For example: public class MyClass { public void interceptMe() {} public void invokeMe() {} } and public class…
knpwrs
  • 15,691
  • 12
  • 62
  • 103
1
vote
1 answer

Spring AOP : How to fix this bug

I am practising AOP and facing error in simple AOP example.It seems to be Jar version related issue. I have included all the necessary JAR's CGLib-2.1,aspectjrt-1.6.0,aspectj-1.6.9,aopalliance-1.0.jar Here is the code : ** Beans.xml **
KapilS
  • 149
  • 1
  • 2
  • 11
1
vote
1 answer

CGLIB error after launching program (signer information does not match signer information of other classes in the same package)

I am getting a CGLIB error while trying to run a program. I searched for the same issue, and found some threats, but without any solution. Stack trace: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error…
m190
  • 351
  • 5
  • 11
0
votes
3 answers

spring aop @within not working correctly for custom annotation

I have created a custom annotation for some logging purpose. This annotation is applied over spring jpa repository created in project by extending JpaRepository. So what is happening now is that for read methods it is working correctly but for save…
Sahil
  • 59
  • 1
  • 10
0
votes
2 answers

Spring AOP work in one method and doesn't work in another of same class

I am using Spring AOP for custom annotation, where it trigger fine in other method but don't work in below mentioned method. I am new to AOP concept so please help. I have tried to use same AOP on other method which is working perfectly fine. I…
1
2