Skip to main content

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

Sorry,

I must have done something wrong, it just works.


2005/11/9, Eduardo Rocha <eduardorochabr@xxxxxxxxx>:
> 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