Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Aspects.aspectOf and NoAspectBoundException

I get NoAspectBoundException when using:

MyAspect singleton = (MyAspect) Aspects.aspectOf(MyAspect.class);

for a simple aspect

@Aspect
public class MyAspect {}

I have seen some messages on the list about it and it is right that I
get this exception? What method should I use to get an instance of a
singleton aspect?


Back to the top